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