From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmllink.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/htmllink.c b/dlls/mshtml/htmllink.c index 805ec031227..e499ee2232d 100644 --- a/dlls/mshtml/htmllink.c +++ b/dlls/mshtml/htmllink.c @@ -387,12 +387,14 @@ static const tid_t HTMLLinkElement_iface_tids[] = { IHTMLLinkElement_tid, 0 }; -static dispex_static_data_t HTMLLinkElement_dispex = { - "HTMLLinkElement", - &HTMLLinkElement_event_target_vtbl.dispex_vtbl, - DispHTMLLinkElement_tid, - HTMLLinkElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLLinkElement_dispex = { + .name = "HTMLLinkElement", + .id = PROT_HTMLLinkElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLLinkElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLLinkElement_tid, + .iface_tids = HTMLLinkElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLLinkElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index d41e5549e6f..7c92a160ebe 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -424,6 +424,7 @@ typedef struct { X(HTMLImageElement) \ X(HTMLInputElement) \ X(HTMLLabelElement) \ + X(HTMLLinkElement) \ X(HTMLMetaElement) \ X(HTMLOptionElement) \ X(HTMLTitleElement) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index 724e295d341..14a651b30e1 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3174,4 +3174,6 @@ sync_test("prototypes", function() { check(HTMLLabelElement.prototype, HTMLElement.prototype, "label element prototype"); check(document.createElement("button"), HTMLButtonElement.prototype, "button element"); check(HTMLButtonElement.prototype, HTMLElement.prototype, "button element prototype"); + check(document.createElement("link"), HTMLLinkElement.prototype, "link element"); + check(HTMLLinkElement.prototype, HTMLElement.prototype, "link element prototype"); });