mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 917598 - ISimpleDOMNode::innerHTML does not work on math elements, r=tbsaunde
This commit is contained in:
parent
18273ed0f8
commit
4a47f510ec
@ -466,12 +466,11 @@ sdnAccessible::get_innerHTML(BSTR __RPC_FAR* aInnerHTML)
|
||||
if (IsDefunct())
|
||||
return CO_E_OBJNOTCONNECTED;
|
||||
|
||||
nsCOMPtr<nsIDOMHTMLElement> htmlElement = do_QueryInterface(mNode);
|
||||
if (!htmlElement)
|
||||
if (!mNode->IsElement())
|
||||
return S_FALSE;
|
||||
|
||||
nsAutoString innerHTML;
|
||||
htmlElement->GetInnerHTML(innerHTML);
|
||||
mNode->AsElement()->GetInnerHTML(innerHTML);
|
||||
if (innerHTML.IsEmpty())
|
||||
return S_FALSE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user