| Index: Source/WebKit/chromium/src/WebElement.cpp
|
| ===================================================================
|
| --- Source/WebKit/chromium/src/WebElement.cpp (revision 132828)
|
| +++ Source/WebKit/chromium/src/WebElement.cpp (working copy)
|
| @@ -65,6 +65,12 @@
|
| tagName.operator String());
|
| }
|
|
|
| +bool WebElement::hasHTMLTagName(const WebString& tagName) const
|
| +{
|
| + const Element* element = constUnwrap<Element>();
|
| + return HTMLNames::xhtmlNamespaceURI == element->namespaceURI() && equalIgnoringCase(element->tagName(), String(tagName));
|
| +}
|
| +
|
| bool WebElement::hasAttribute(const WebString& attrName) const
|
| {
|
| return constUnwrap<Element>()->hasAttribute(attrName);
|
|
|