From: Jacek Caban jacek@codeweavers.com
--- dlls/mshtml/htmltextarea.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/htmltextarea.c b/dlls/mshtml/htmltextarea.c index de0cd735e9e..613fe629117 100644 --- a/dlls/mshtml/htmltextarea.c +++ b/dlls/mshtml/htmltextarea.c @@ -415,12 +415,14 @@ static const tid_t HTMLTextAreaElement_iface_tids[] = { 0 };
-static dispex_static_data_t HTMLTextAreaElement_dispex = { - "HTMLTextAreaElement", - &HTMLTextAreaElement_event_target_vtbl.dispex_vtbl, - DispHTMLTextAreaElement_tid, - HTMLTextAreaElement_iface_tids, - HTMLElement_init_dispex_info +dispex_static_data_t HTMLTextAreaElement_dispex = { + .name = "HTMLTextAreaElement", + .id = PROT_HTMLTextAreaElement, + .prototype_id = PROT_HTMLElement, + .vtbl = &HTMLTextAreaElement_event_target_vtbl.dispex_vtbl, + .disp_tid = DispHTMLTextAreaElement_tid, + .iface_tids = HTMLTextAreaElement_iface_tids, + .init_info = HTMLElement_init_dispex_info, };
HRESULT HTMLTextAreaElement_Create(HTMLDocumentNode *doc, nsIDOMElement *nselem, HTMLElement **elem) diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index 5b73ddc967a..9696e4d5df5 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -436,6 +436,7 @@ typedef struct { X(HTMLTableDataCellElement) \ X(HTMLTableElement) \ X(HTMLTableRowElement) \ + X(HTMLTextAreaElement) \ X(HTMLTitleElement) \ X(MutationObserver) \ X(Navigator) \ diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index a6684be69dc..ecf6e826ade 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -3193,4 +3193,6 @@ sync_test("prototypes", function() { check(document.createElement("td"), HTMLTableDataCellElement.prototype, "td element"); check(HTMLTableDataCellElement.prototype, HTMLTableCellElement.prototype, "td element prototype"); check(HTMLTableCellElement.prototype, HTMLElement.prototype, "table cell prototype"); + check(document.createElement("textarea"), HTMLTextAreaElement.prototype, "textarea element"); + check(HTMLTextAreaElement.prototype, HTMLElement.prototype, "textarea element prototype"); });