mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:37:44 +00:00
LibWeb: Implement Node.contains
Used by Web Components Polyfills.
This commit is contained in:
parent
a826df773e
commit
9cae827f07
3 changed files with 9 additions and 0 deletions
|
@ -21,6 +21,7 @@ interface Node : EventTarget {
|
|||
Node replaceChild(Node node, Node child);
|
||||
[ImplementedAs=pre_remove] Node removeChild(Node child);
|
||||
[ImplementedAs=clone_node_binding] Node cloneNode(optional boolean deep = false);
|
||||
boolean contains(Node? other);
|
||||
|
||||
const unsigned short ELEMENT_NODE = 1;
|
||||
const unsigned short ATTRIBUTE_NODE = 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue