From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmldoc.c | 12 +++++++----- dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/tests/documentmode.js | 2 ++ 3 files changed, 10 insertions(+), 5 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index 13731e62474..14234cdfd69 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -322,11 +322,13 @@ static const tid_t DocumentType_iface_tids[] = { 0 };
-static dispex_static_data_t DocumentType_dispex = { - "DocumentType", - &DocumentType_event_target_vtbl.dispex_vtbl, - DispDOMDocumentType_tid, - DocumentType_iface_tids +dispex_static_data_t DocumentType_dispex = { + .name = "DocumentType", + .id = PROT_DocumentType, + .prototype_id = PROT_Node, + .vtbl = &DocumentType_event_target_vtbl.dispex_vtbl, + .disp_tid = DispDOMDocumentType_tid, + .iface_tids = DocumentType_iface_tids, };
HRESULT create_doctype_node(HTMLDocumentNode *doc, nsIDOMNode *nsnode, HTMLDOMNode **ret) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index fd63127b582..16bc67ac12b 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -409,6 +409,7 @@ typedef struct { #define ALL_PROTOTYPES \ X(DOMImplementation) \ X(Document) \ + X(DocumentType) \ X(Element) \ X(HTMLAnchorElement) \ X(HTMLAreaElement) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index b3f0d8964a9..c7d3780b891 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3209,4 +3209,6 @@ sync_test("prototypes", function() { check(SVGTSpanElement.prototype, SVGTextPositioningElement.prototype, "svg:tspan element prototype"); check(SVGTextPositioningElement.prototype, SVGTextContentElement.prototype, "SVGTextPositioningElement prototype"); check(SVGTextContentElement.prototype, SVGElement.prototype, "SVGTextPositioningElement prototype"); + check(document.doctype, DocumentType.prototype, "doctype"); + check(DocumentType.prototype, Node.prototype, "doctype prototype"); });