From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlarea.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/htmlarea.c b/dlls/mshtml/htmlarea.c index f00c621adc2..c26855e45e5 100644 --- a/dlls/mshtml/htmlarea.c +++ b/dlls/mshtml/htmlarea.c @@ -444,12 +444,14 @@ static const tid_t HTMLAreaElement_iface_tids[] = { IHTMLAreaElement_tid, 0 }; -static dispex_static_data_t HTMLAreaElement_dispex = { - "HTMLAreaElement", - &HTMLAreaElement_event_target_vtbl.dispex_vtbl, - DispHTMLAreaElement_tid, - HTMLAreaElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLAreaElement_dispex = { + .name = "HTMLAreaElement", + .id = PROT_HTMLAreaElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLAreaElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLAreaElement_tid, + .iface_tids = HTMLAreaElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLAreaElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index bddc30ad4cf..e6854cdcf91 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -411,6 +411,7 @@ typedef struct { X(Document) \ X(Element) \ X(HTMLAnchorElement) \ + X(HTMLAreaElement) \ X(HTMLBodyElement) \ X(HTMLDocument) \ X(HTMLElement) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 7a9dfd88caa..1849bbebc80 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3152,4 +3152,6 @@ sync_test("prototypes", function() { } check(document.createElement("a"), HTMLAnchorElement.prototype, "anchor element"); check(HTMLAnchorElement.prototype, HTMLElement.prototype, "anchor element prototype"); + check(document.createElement("area"), HTMLAreaElement.prototype, "area element"); + check(HTMLAreaElement.prototype, HTMLElement.prototype, "area element prototype"); });