mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
||||
fn Closest(&self, selectors: DOMString) -> Fallible<Option<Root<Element>>> {
|
||||
match parse_author_origin_selector_list_from_str(&selectors) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue