From 39a8701dfdb7ba5b858d96d38f7935b5bee3ac3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20Iv=C4=83ncescu?= Date: Mon, 29 Nov 2021 18:31:24 +0200 Subject: [PATCH] mshtml: Don't populate the props at all on IE9+ modes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For IE9 and up we use proper attribute nodes without associated props. Signed-off-by: Gabriel Ivăncescu Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/mshtml/htmlelem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c index 3f7c60b0172..0a7755bea7f 100644 --- a/dlls/mshtml/htmlelem.c +++ b/dlls/mshtml/htmlelem.c @@ -6466,6 +6466,9 @@ static HRESULT HTMLElement_populate_props(DispatchEx *dispex) if(!This->dom_element) return S_FALSE; + if(dispex_compat_mode(dispex) >= COMPAT_MODE_IE9) + return S_OK; + nsres = nsIDOMElement_GetAttributes(This->dom_element, &attrs); if(NS_FAILED(nsres)) return E_FAIL;