Index: Source/core/xml/XPathFunctions.cpp |
diff --git a/Source/core/xml/XPathFunctions.cpp b/Source/core/xml/XPathFunctions.cpp |
index 90c097252abe7a3c4c921f3107f94a8360aa7552..77a0cd8709c0d68a0e9a96dc78ccdf9252c3dda2 100644 |
--- a/Source/core/xml/XPathFunctions.cpp |
+++ b/Source/core/xml/XPathFunctions.cpp |
@@ -603,7 +603,7 @@ Value FunLang::evaluate() const |
if (node->isElementNode()) { |
Element* element = toElement(node); |
if (element->hasAttributes()) |
- languageAttribute = element->getAttributeItem(XMLNames::langAttr); |
+ languageAttribute = element->findAttributeByName(XMLNames::langAttr); |
} |
if (languageAttribute) |
break; |