From 8b0f1721bbc547fc85892b58f7d14acd424104e4 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Fri, 12 Mar 2021 17:39:52 +0100 Subject: [PATCH] mshtml: Initialize HTMLTxtRange object with compat mode. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/range.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/mshtml/range.c b/dlls/mshtml/range.c index aa8e8942a87..d739c18d13e 100644 --- a/dlls/mshtml/range.c +++ b/dlls/mshtml/range.c @@ -1729,7 +1729,8 @@ HRESULT HTMLTxtRange_Create(HTMLDocumentNode *doc, nsIDOMRange *nsrange, IHTMLTx if(!ret) return E_OUTOFMEMORY; - init_dispex(&ret->dispex, (IUnknown*)&ret->IHTMLTxtRange_iface, &HTMLTxtRange_dispex); + init_dispex_with_compat_mode(&ret->dispex, (IUnknown*)&ret->IHTMLTxtRange_iface, &HTMLTxtRange_dispex, + dispex_compat_mode(&doc->node.event_target.dispex)); ret->IHTMLTxtRange_iface.lpVtbl = &HTMLTxtRangeVtbl; ret->IOleCommandTarget_iface.lpVtbl = &OleCommandTargetVtbl; -- 2.11.4.GIT