Index: Source/core/xml/XPathFunctions.cpp |
diff --git a/Source/core/xml/XPathFunctions.cpp b/Source/core/xml/XPathFunctions.cpp |
index 32a46eb9b2fe5145e5c15c5d650fa6a2abb1d4a2..9d5abff6d45d486fe1953e4076adc87ab727d483 100644 |
--- a/Source/core/xml/XPathFunctions.cpp |
+++ b/Source/core/xml/XPathFunctions.cpp |
@@ -603,7 +603,7 @@ Value FunLang::evaluate(EvaluationContext& context) const |
if (node->isElementNode()) { |
Element* element = toElement(node); |
if (element->hasAttributes()) |
- languageAttribute = element->findAttributeByName(XMLNames::langAttr); |
+ languageAttribute = element->attributes().find(XMLNames::langAttr); |
} |
if (languageAttribute) |
break; |