| Index: Source/WebKit/chromium/src/WebElement.cpp
|
| ===================================================================
|
| --- Source/WebKit/chromium/src/WebElement.cpp (revision 134275)
|
| +++ Source/WebKit/chromium/src/WebElement.cpp (working copy)
|
| @@ -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
|
|
|