Commit 49679eb9 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Expose IDocumentEvent to scripts.

parent d6d23a53
......@@ -5107,8 +5107,10 @@ static void HTMLDocumentNode_init_dispex_info(dispex_data_t *info, compat_mode_t
{
HTMLDOMNode_init_dispex_info(info, mode);
if(mode >= COMPAT_MODE_IE9)
if(mode >= COMPAT_MODE_IE9) {
dispex_info_add_interface(info, IHTMLDocument7_tid, NULL);
dispex_info_add_interface(info, IDocumentEvent_tid, NULL);
}
/* Depending on compatibility version, we add interfaces in different order
* so that the right getElementById implementation is used. */
......
......@@ -126,6 +126,7 @@ typedef struct EventTarget EventTarget;
XDIID(HTMLDocumentEvents) \
XDIID(HTMLElementEvents2) \
XIID(IDOMEvent) \
XIID(IDocumentEvent) \
XIID(IDocumentSelector) \
XIID(IElementSelector) \
XIID(IElementTraversal) \
......
......@@ -62,6 +62,7 @@ function test_doc_props() {
test_exposed("addEventListener", v >= 9);
test_exposed("removeEventListener", v >= 9);
test_exposed("dispatchEvent", v >= 9);
test_exposed("createEvent", v >= 9);
test_exposed("parentWindow", true);
if(v >= 9) ok(document.defaultView === document.parentWindow, "defaultView != parentWindow");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment