mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 929773 - ISimpleDOMNode language fails on text nodes, r=davidb
This commit is contained in:
parent
a4e08580e0
commit
eceff25684
@ -516,8 +516,8 @@ sdnAccessible::get_language(BSTR __RPC_FAR* aLanguage)
|
||||
return CO_E_OBJNOTCONNECTED;
|
||||
|
||||
nsAutoString language;
|
||||
if (mNode->IsElement())
|
||||
nsCoreUtils::GetLanguageFor(mNode->AsElement(), nullptr, language);
|
||||
if (mNode->IsContent())
|
||||
nsCoreUtils::GetLanguageFor(mNode->AsContent(), nullptr, language);
|
||||
if (language.IsEmpty()) { // Nothing found, so use document's language
|
||||
mNode->OwnerDoc()->GetHeaderData(nsGkAtoms::headerContentLanguage,
|
||||
language);
|
||||
|
Loading…
Reference in New Issue
Block a user