[PATCH v11 05/10] mshtml: Don't populate the props at all on IE9+ modes.

Gabriel Ivăncescu gabrielopcode at gmail.com
Mon Nov 29 10:31:24 CST 2021


For IE9 and up we use proper attribute nodes without associated props.

Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
 dlls/mshtml/htmlelem.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dlls/mshtml/htmlelem.c b/dlls/mshtml/htmlelem.c
index d718069..bc2a28f 100644
--- a/dlls/mshtml/htmlelem.c
+++ b/dlls/mshtml/htmlelem.c
@@ -6467,6 +6467,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;
-- 
2.31.1




More information about the wine-devel mailing list