LibWeb: Implement Node.contains

Used by Web Components Polyfills.
This commit is contained in:
Luke 2021-07-05 05:55:02 +01:00 committed by Andreas Kling
commit 9cae827f07
Notes: sideshowbarker 2024-07-18 10:24:02 +09:00
3 changed files with 9 additions and 0 deletions

View file

@ -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;