Title: [134275] branches/chromium/1271/Source/WebKit/chromium/src/WebElement.cpp
Revision
134275
Author
[email protected]
Date
2012-11-12 11:53:57 -0800 (Mon, 12 Nov 2012)

Log Message

Merge 133982
BUG=159829
Review URL: https://codereview.chromium.org/11363202

Modified Paths

Diff

Modified: branches/chromium/1271/Source/WebKit/chromium/src/WebElement.cpp (134274 => 134275)


--- branches/chromium/1271/Source/WebKit/chromium/src/WebElement.cpp	2012-11-12 19:50:40 UTC (rev 134274)
+++ branches/chromium/1271/Source/WebKit/chromium/src/WebElement.cpp	2012-11-12 19:53:57 UTC (rev 134275)
@@ -67,8 +67,13 @@
 
 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() && equalIgnoringCase(element->tagName(), String(tagName));
+    return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && element->localName() == String(tagName).lower();
 }
 
 bool WebElement::hasAttribute(const WebString& attrName) const
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to