script: Element.webkitMatchesSelector()

spec:
9ac9c15486
This commit is contained in:
Tetsuharu OHZEKI 2015-10-25 15:21:40 +09:00
parent bb88832c07
commit 04967ed97e
2 changed files with 7 additions and 0 deletions

View file

@ -1461,6 +1461,11 @@ impl ElementMethods for Element {
}
}
// https://dom.spec.whatwg.org/#dom-element-webkitmatchesselector
fn WebkitMatchesSelector(&self, selectors: DOMString) -> Fallible<bool> {
self.Matches(selectors)
}
// https://dom.spec.whatwg.org/#dom-element-closest
fn Closest(&self, selectors: DOMString) -> Fallible<Option<Root<Element>>> {
match parse_author_origin_selector_list_from_str(&selectors) {