mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Implement Node.contains
Used by Web Components Polyfills.
This commit is contained in:
parent
a826df773e
commit
9cae827f07
Notes:
sideshowbarker
2024-07-18 10:24:02 +09:00
Author: https://github.com/Lubrsi
Commit: 9cae827f07
Pull-request: https://github.com/SerenityOS/serenity/pull/8449
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