From 29c1fa63e30ba6cfa80fab4ca9094c56e1aeceb7 Mon Sep 17 00:00:00 2001 From: Alexander Surkov Date: Wed, 23 Oct 2013 12:40:57 -0400 Subject: [PATCH] Bug 929773 - ISimpleDOMNode language fails on text nodes, r=davidb --- accessible/src/windows/sdn/sdnAccessible.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accessible/src/windows/sdn/sdnAccessible.cpp b/accessible/src/windows/sdn/sdnAccessible.cpp index 7233058f75d4..6b80e1a00a4c 100644 --- a/accessible/src/windows/sdn/sdnAccessible.cpp +++ b/accessible/src/windows/sdn/sdnAccessible.cpp @@ -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);