Index: Source/WebKit/chromium/public/WebElement.h |
=================================================================== |
--- Source/WebKit/chromium/public/WebElement.h (revision 132828) |
+++ Source/WebKit/chromium/public/WebElement.h (working copy) |
@@ -51,8 +51,15 @@ |
WEBKIT_EXPORT bool isFormControlElement() const; |
WEBKIT_EXPORT bool isTextFormControlElement() const; |
+ // Returns the qualified name, which may contain a prefix and a colon. |
WEBKIT_EXPORT WebString tagName() const; |
+ // Check if this element has the specified qualified name. This function |
+ // doesn't makes much sense because we have no ways to check namespace |
+ // URI. Do not use this. |
WEBKIT_EXPORT bool hasTagName(const WebString&) const; |
+ // Check if this element has the specified local tag name, and the HTML |
+ // namespace. Tag name matching is case-insensitive. |
+ WEBKIT_EXPORT bool hasHTMLTagName(const WebString&) const; |
WEBKIT_EXPORT bool hasAttribute(const WebString&) const; |
WEBKIT_EXPORT WebString getAttribute(const WebString&) const; |
WEBKIT_EXPORT bool setAttribute(const WebString& name, const WebString& value); |