summaryrefslogtreecommitdiff
path: root/Source/WebKit/chromium/src/WebElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/chromium/src/WebElement.cpp')
-rw-r--r--Source/WebKit/chromium/src/WebElement.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/WebKit/chromium/src/WebElement.cpp b/Source/WebKit/chromium/src/WebElement.cpp
index 96cf9791d..49fff0a07 100644
--- a/Source/WebKit/chromium/src/WebElement.cpp
+++ b/Source/WebKit/chromium/src/WebElement.cpp
@@ -66,13 +66,8 @@ bool WebElement::hasTagName(const WebString& tagName) const
bool WebElement::hasHTMLTagName(const WebString& tagName) const
{
- // How to create class nodeName localName
- // createElement('input') HTMLInputElement INPUT input
- // createElement('INPUT') HTMLInputElement INPUT input
- // createElementNS(xhtmlNS, 'input') HTMLInputElement INPUT input
- // createElementNS(xhtmlNS, 'INPUT') HTMLUnknownElement INPUT INPUT
const Element* element = constUnwrap<Element>();
- return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && element->localName() == String(tagName).lower();
+ return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && equalIgnoringCase(element->tagName(), String(tagName));
}
bool WebElement::hasAttribute(const WebString& attrName) const