From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlscript.c | 14 ++++++++------ dlls/mshtml/mshtml_private.h | 1 + dlls/mshtml/tests/documentmode.js | 2 ++ 3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/dlls/mshtml/htmlscript.c b/dlls/mshtml/htmlscript.c index 9a4d9dd5242..1defaba2efe 100644 --- a/dlls/mshtml/htmlscript.c +++ b/dlls/mshtml/htmlscript.c @@ -414,12 +414,14 @@ static const tid_t HTMLScriptElement_iface_tids[] = { 0 };
-static dispex_static_data_t HTMLScriptElement_dispex = { - "HTMLScriptElement", - &HTMLScriptElement_event_target_vtbl.dispex_vtbl, - DispHTMLScriptElement_tid, - HTMLScriptElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLScriptElement_dispex = { + .name = "HTMLScriptElement", + .id = PROT_HTMLScriptElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLScriptElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLScriptElement_tid, + .iface_tids = HTMLScriptElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLScriptElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 196341a7b7d..7067d71bed7 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -429,6 +429,7 @@ typedef struct { X(HTMLMetaElement) \ X(HTMLObjectElement) \ X(HTMLOptionElement) \ + X(HTMLScriptElement) \ X(HTMLTitleElement) \ X(MutationObserver) \ X(Navigator) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 597e8e6f8d7..2a557e0670f 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3180,4 +3180,6 @@ sync_test("prototypes", function() { check(HTMLObjectElement.prototype, HTMLElement.prototype, "object element prototype"); check(document.createElement("embed"), HTMLEmbedElement.prototype, "embed element"); check(HTMLEmbedElement.prototype, HTMLElement.prototype, "embed element prototype"); + check(document.createElement("script"), HTMLScriptElement.prototype, "script element"); + check(HTMLScriptElement.prototype, HTMLElement.prototype, "script element prototype"); });