1
Fork 0
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:
Luke 2021-07-05 05:55:02 +01:00 committed by Andreas Kling
parent a826df773e
commit 9cae827f07
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;