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