mshtml: Don't populate the props at all on IE9+ modes.

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

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>
This commit is contained in:
Gabriel Ivăncescu 2021-11-29 18:31:24 +02:00 committed by Alexandre Julliard
parent 518a175cba
commit 39a8701dfd
1 changed files with 3 additions and 0 deletions

View File

@ -6466,6 +6466,9 @@ static HRESULT HTMLElement_populate_props(DispatchEx *dispex)
if(!This->dom_element) if(!This->dom_element)
return S_FALSE; return S_FALSE;
if(dispex_compat_mode(dispex) >= COMPAT_MODE_IE9)
return S_OK;
nsres = nsIDOMElement_GetAttributes(This->dom_element, &attrs); nsres = nsIDOMElement_GetAttributes(This->dom_element, &attrs);
if(NS_FAILED(nsres)) if(NS_FAILED(nsres))
return E_FAIL; return E_FAIL;