Module: wine Branch: master Commit: f7ea38d708311df8d1f72b1b53d7c4c2f73504f9 URL: https://source.winehq.org/git/wine.git/?a=commit;h=f7ea38d708311df8d1f72b1b5...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Thu Oct 7 16:52:29 2021 +0300
mshtml: Cap the compat mode for filters collection to IE8 mode.
So dispex_to_string returns [object].
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/mshtml/htmlelem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index dada4de9ab7..29aa378b6bf 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -7074,7 +7074,7 @@ static HRESULT create_filters_collection(compat_mode_t compat_mode, IHTMLFilters collection->ref = 1;
init_dispatch(&collection->dispex, (IUnknown*)&collection->IHTMLFiltersCollection_iface, - &HTMLFiltersCollection_dispex, compat_mode); + &HTMLFiltersCollection_dispex, min(compat_mode, COMPAT_MODE_IE8));
*ret = &collection->IHTMLFiltersCollection_iface; return S_OK;