mshtml: Initialize HTMLSelectionObject object with compat mode.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-03-12 17:39:57 +01:00 committed by Alexandre Julliard
parent 8b0f1721bb
commit 45c682c74b
1 changed files with 2 additions and 1 deletions
dlls/mshtml

View File

@ -343,7 +343,8 @@ HRESULT HTMLSelectionObject_Create(HTMLDocumentNode *doc, nsISelection *nsselect
if(!selection)
return E_OUTOFMEMORY;
init_dispex(&selection->dispex, (IUnknown*)&selection->IHTMLSelectionObject_iface, &HTMLSelectionObject_dispex);
init_dispex_with_compat_mode(&selection->dispex, (IUnknown*)&selection->IHTMLSelectionObject_iface,
&HTMLSelectionObject_dispex, dispex_compat_mode(&doc->node.event_target.dispex));
selection->IHTMLSelectionObject_iface.lpVtbl = &HTMLSelectionObjectVtbl;
selection->IHTMLSelectionObject2_iface.lpVtbl = &HTMLSelectionObject2Vtbl;