From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmlanchor.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/htmlanchor.c b/dlls/mshtml/htmlanchor.c index 670cd48795d..5f585ac61f6 100644 --- a/dlls/mshtml/htmlanchor.c +++ b/dlls/mshtml/htmlanchor.c @@ -834,12 +834,14 @@ static const tid_t HTMLAnchorElement_iface_tids[] = { 0 };
-static dispex_static_data_t HTMLAnchorElement_dispex = { - "HTMLAnchorElement", - &HTMLAnchorElement_event_target_vtbl.dispex_vtbl, - DispHTMLAnchorElement_tid, - HTMLAnchorElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLAnchorElement_dispex = { + .name = "HTMLAnchorElement", + .id = PROT_HTMLAnchorElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLAnchorElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLAnchorElement_tid, + .iface_tids = HTMLAnchorElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLAnchorElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index f25662e0d15..bddc30ad4cf 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -410,6 +410,7 @@ typedef struct { X(DOMImplementation) \ X(Document) \ X(Element) \ + X(HTMLAnchorElement) \ X(HTMLBodyElement) \ X(HTMLDocument) \ X(HTMLElement) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 123523543f0..7a9dfd88caa 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3150,4 +3150,6 @@ sync_test("prototypes", function() { check(MutationObserver.prototype, Object.prototype, "mutation observer prototype"); check(MutationObserver, Function.prototype, "mutation observer constructor"); } + check(document.createElement("a"), HTMLAnchorElement.prototype, "anchor element"); + check(HTMLAnchorElement.prototype, HTMLElement.prototype, "anchor element prototype"); });