From: Gabriel Ivăncescu gabrielopcode@gmail.com
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com --- dlls/mshtml/htmldoc.c | 4 ++++ dlls/mshtml/omnavigator.c | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index bb930fa42e4..67d14da30ae 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -5985,6 +5985,10 @@ HRESULT create_document_node(nsIDOMDocument *nsdoc, GeckoBrowser *browser, HTMLI ERR("SetDesignMode failed: %08lx\n", nsres); }
+ /* make sure dispex info is initialized for the prototype */ + if(parent_mode >= COMPAT_MODE_IE9 && !window) + dispex_compat_mode(&doc->node.event_target.dispex); + *ret = doc; return S_OK; } diff --git a/dlls/mshtml/omnavigator.c b/dlls/mshtml/omnavigator.c index c65fb675372..b616b2e722e 100644 --- a/dlls/mshtml/omnavigator.c +++ b/dlls/mshtml/omnavigator.c @@ -139,10 +139,6 @@ static HRESULT WINAPI HTMLDOMImplementation2_createHTMLDocument(IHTMLDOMImplemen if(FAILED(hres)) return hres;
- /* make sure dispex info is initialized for the prototype */ - if(compat_mode >= COMPAT_MODE_IE9) - dispex_compat_mode(&new_document_node->node.event_target.dispex); - *new_document = &new_document_node->IHTMLDocument7_iface; return S_OK; }