mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Implement Element#closest
fixes #4603 - Add definition to the Element.webidl and implementation to element.rs. - Create inclusive_ancestors helper in NodeHelpers - Update test expectations
This commit is contained in:
parent
2a9acdcb73
commit
7759358e09
6 changed files with 27 additions and 83 deletions
|
@ -44,6 +44,9 @@ interface Element : Node {
|
|||
boolean hasAttribute(DOMString name);
|
||||
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
|
||||
|
||||
[Throws]
|
||||
Element? closest(DOMString selectors);
|
||||
|
||||
[Throws]
|
||||
boolean matches(DOMString selectors);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue