diff --git a/dlls/mshtml/htmlhead.c b/dlls/mshtml/htmlhead.c
index aee21576231..eacbcd4733e 100644
--- a/dlls/mshtml/htmlhead.c
+++ b/dlls/mshtml/htmlhead.c
@@ -159,6 +159,18 @@ static const NodeImplVtbl HTMLHeadElementImplVtbl = {
HTMLElement_clone
};
+static const tid_t HTMLHeadElement_iface_tids[] = {
+ HTMLELEMENT_TIDS,
+ IHTMLHeadElement_tid,
+ 0
+};
+static dispex_static_data_t HTMLHeadElement_dispex = {
+ NULL,
+ DispHTMLHeadElement_tid,
+ NULL,
+ HTMLHeadElement_iface_tids
+};
+
HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem, HTMLElement **elem)
{
HTMLHeadElement *ret;
@@ -170,7 +182,7 @@ HRESULT HTMLHeadElement_Create(HTMLDocumentNode *doc, nsIDOMHTMLElement *nselem,
ret->IHTMLHeadElement_iface.lpVtbl = &HTMLHeadElementVtbl;
ret->element.node.vtbl = &HTMLHeadElementImplVtbl;
- HTMLElement_Init(&ret->element, doc, nselem, NULL);
+ HTMLElement_Init(&ret->element, doc, nselem, &HTMLHeadElement_dispex);
*elem = &ret->element;
return S_OK;
diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
index ea62a46de2b..0b0b6b03e75 100644
--- a/dlls/mshtml/mshtml_private.h
+++ b/dlls/mshtml/mshtml_private.h
@@ -84,6 +84,7 @@ typedef struct event_target_t event_target_t;
XDIID(DispHTMLFormElement) \
XDIID(DispHTMLGenericElement) \
XDIID(DispHTMLFrameElement) \
+ XDIID(DispHTMLHeadElement) \
XDIID(DispHTMLIFrame) \
XDIID(DispHTMLImg) \
XDIID(DispHTMLInputElement) \
@@ -133,6 +134,7 @@ typedef struct event_target_t event_target_t;
XIID(IHTMLFrameBase2) \
XIID(IHTMLFrameElement3) \
XIID(IHTMLGenericElement) \
+ XIID(IHTMLHeadElement) \
XIID(IHTMLIFrameElement) \
XIID(IHTMLImageElementFactory) \
XIID(IHTMLImgElement) \
diff --git a/dlls/mshtml/tests/dom.c b/dlls/mshtml/tests/dom.c
index 967294365e8..a637a3f7afd 100644
--- a/dlls/mshtml/tests/dom.c
+++ b/dlls/mshtml/tests/dom.c
@@ -368,7 +368,7 @@ typedef struct {
static const elem_type_info_t elem_type_infos[] = {
{"", none_iids, NULL},
{"HTML", elem_iids, NULL},
- {"HEAD", head_iids, NULL},
+ {"HEAD", head_iids, &DIID_DispHTMLHeadElement},
{"TITLE", elem_iids, NULL},
{"BODY", body_iids, &DIID_DispHTMLBody},
{"A", anchor_iids, &DIID_DispHTMLAnchorElement},