Index: Source/core/html/LabelsNodeList.cpp |
diff --git a/Source/core/html/LabelsNodeList.cpp b/Source/core/html/LabelsNodeList.cpp |
index 1dba7dc762d9cf8cd1b6c86ac349ce6d85ffe163..a06cf398797437c1c384ea4bb0612db0e943f058 100644 |
--- a/Source/core/html/LabelsNodeList.cpp |
+++ b/Source/core/html/LabelsNodeList.cpp |
@@ -45,7 +45,7 @@ LabelsNodeList::~LabelsNodeList() |
bool LabelsNodeList::nodeMatches(const Element& testNode) const |
{ |
- return testNode.hasTagName(labelTag) && toHTMLLabelElement(testNode).control() == ownerNode(); |
+ return isHTMLLabelElement(testNode) && toHTMLLabelElement(testNode).control() == ownerNode(); |
} |
} // namespace WebCore |