Title: [134276] branches/chromium/1312/Source/WebKit/chromium/src/WebElement.cpp
Revision
134276
Author
[email protected]
Date
2012-11-12 11:54:45 -0800 (Mon, 12 Nov 2012)

Log Message

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

Modified Paths

Diff

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


--- branches/chromium/1312/Source/WebKit/chromium/src/WebElement.cpp	2012-11-12 19:53:57 UTC (rev 134275)
+++ branches/chromium/1312/Source/WebKit/chromium/src/WebElement.cpp	2012-11-12 19:54:45 UTC (rev 134276)
@@ -66,8 +66,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