From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlform.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/htmlform.c b/dlls/mshtml/htmlform.c index 80a8d706054..83c13626a45 100644 --- a/dlls/mshtml/htmlform.c +++ b/dlls/mshtml/htmlform.c @@ -908,12 +908,14 @@ static const tid_t HTMLFormElement_iface_tids[] = { 0 };
-static dispex_static_data_t HTMLFormElement_dispex = { - "HTMLFormElement", - &HTMLFormElement_event_target_vtbl.dispex_vtbl, - DispHTMLFormElement_tid, - HTMLFormElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLFormElement_dispex = { + .name = "HTMLFormElement", + .id = PROT_HTMLFormElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLFormElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLFormElement_tid, + .iface_tids = HTMLFormElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLFormElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index e6854cdcf91..a493c3e6557 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -415,6 +415,7 @@ typedef struct { X(HTMLBodyElement) \ X(HTMLDocument) \ X(HTMLElement) \ + X(HTMLFormElement) \ X(HTMLImageElement) \ X(HTMLOptionElement) \ X(MutationObserver) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 1849bbebc80..e2916d7f5dd 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3154,4 +3154,6 @@ sync_test("prototypes", function() { check(HTMLAnchorElement.prototype, HTMLElement.prototype, "anchor element prototype"); check(document.createElement("area"), HTMLAreaElement.prototype, "area element"); check(HTMLAreaElement.prototype, HTMLElement.prototype, "area element prototype"); + check(document.createElement("form"), HTMLFormElement.prototype, "form element"); + check(HTMLFormElement.prototype, HTMLElement.prototype, "form element prototype"); });