mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
parent
bb88832c07
commit
04967ed97e
2 changed files with 7 additions and 0 deletions
|
@ -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
|
// https://dom.spec.whatwg.org/#dom-element-closest
|
||||||
fn Closest(&self, selectors: DOMString) -> Fallible<Option<Root<Element>>> {
|
fn Closest(&self, selectors: DOMString) -> Fallible<Option<Root<Element>>> {
|
||||||
match parse_author_origin_selector_list_from_str(&selectors) {
|
match parse_author_origin_selector_list_from_str(&selectors) {
|
||||||
|
|
|
@ -55,6 +55,8 @@ interface Element : Node {
|
||||||
|
|
||||||
[Pure, Throws]
|
[Pure, Throws]
|
||||||
boolean matches(DOMString selectors);
|
boolean matches(DOMString selectors);
|
||||||
|
[Pure, Throws]
|
||||||
|
boolean webkitMatchesSelector(DOMString selectors);
|
||||||
|
|
||||||
HTMLCollection getElementsByTagName(DOMString localName);
|
HTMLCollection getElementsByTagName(DOMString localName);
|
||||||
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
HTMLCollection getElementsByTagNameNS(DOMString? namespace, DOMString localName);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue