Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions user/src/com/google/gwt/dom/client/Element.java
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,15 @@ public final boolean hasTagName(String tagName) {
return tagName.equalsIgnoreCase(getTagName());
}

/**
* Tests whether the element would be selected by the specified CSS selector.
* @param selectors A string containing valid CSS selectors to test the Element against.
* @return true if the Element matches the selectors. Otherwise, false.
*/
public final native boolean matches(String selectors) /*-{
return this.matches && this.matches(selectors);
}-*/;

/**
* Removes an attribute by name.
*/
Expand Down