From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlselect.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/htmlselect.c b/dlls/mshtml/htmlselect.c index 765686a1260..31f0e33a2b4 100644 --- a/dlls/mshtml/htmlselect.c +++ b/dlls/mshtml/htmlselect.c @@ -1300,12 +1300,14 @@ static const tid_t HTMLSelectElement_tids[] = { 0 };
-static dispex_static_data_t HTMLSelectElement_dispex = { - "HTMLSelectElement", - &HTMLSelectElement_event_target_vtbl.dispex_vtbl, - DispHTMLSelectElement_tid, - HTMLSelectElement_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLSelectElement_dispex = { + .name = "HTMLSelectElement", + .id = PROT_HTMLSelectElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLSelectElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLSelectElement_tid, + .iface_tids = HTMLSelectElement_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLSelectElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 7067d71bed7..f585d1920f4 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -430,6 +430,7 @@ typedef struct { X(HTMLObjectElement) \ X(HTMLOptionElement) \ X(HTMLScriptElement) \ + X(HTMLSelectElement) \ X(HTMLTitleElement) \ X(MutationObserver) \ X(Navigator) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 2a557e0670f..f2b3968140f 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3182,4 +3182,6 @@ sync_test("prototypes", function() { check(HTMLEmbedElement.prototype, HTMLElement.prototype, "embed element prototype"); check(document.createElement("script"), HTMLScriptElement.prototype, "script element"); check(HTMLScriptElement.prototype, HTMLElement.prototype, "script element prototype"); + check(document.createElement("select"), HTMLSelectElement.prototype, "select element"); + check(HTMLSelectElement.prototype, HTMLElement.prototype, "select element prototype"); });