diff options
Diffstat (limited to 'Source/WebCore/xml/XPathNodeSet.cpp')
-rw-r--r-- | Source/WebCore/xml/XPathNodeSet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebCore/xml/XPathNodeSet.cpp b/Source/WebCore/xml/XPathNodeSet.cpp index 8eefc573f..f4e4d9aff 100644 --- a/Source/WebCore/xml/XPathNodeSet.cpp +++ b/Source/WebCore/xml/XPathNodeSet.cpp @@ -213,13 +213,13 @@ void NodeSet::traversalSort() const if (!containsAttributeNodes || !n->isElementNode()) continue; - NamedNodeMap* attributes = toElement(n)->updatedAttributes(); - if (!attributes) + Element* element = toElement(n); + if (!element->hasAttributes()) continue; - unsigned attributeCount = attributes->length(); + unsigned attributeCount = element->attributeCount(); for (unsigned i = 0; i < attributeCount; ++i) { - Attr* attribute = attributes->attributeItem(i)->attr(); + Attr* attribute = element->attributeItem(i)->attr(); if (attribute && nodes.contains(attribute)) sortedNodes.append(attribute); } |