summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Document.idl
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-01-29 20:23:48 +0000
committerAndreas Kling <kling@serenityos.org>2022-01-31 15:25:36 +0100
commitd5c96c3ccf6cc7bacf865d158ab23c040704f50e (patch)
tree95ae6afe87e837f479793a51862dbce6e364a9a0 /Userland/Libraries/LibWeb/DOM/Document.idl
parentd7998c5dbdbe98000554a432f47565d41f8b095c (diff)
downloadserenity-d5c96c3ccf6cc7bacf865d158ab23c040704f50e.zip
LibWeb: Implement ParentNode.prepend
`convert_nodes_to_single_node` is inside its own file so ChildNode can include and use it without having to include other headers such as DOM/Node.h. This is to prevent circular includes.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Document.idl')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.idl2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.idl b/Userland/Libraries/LibWeb/DOM/Document.idl
index 6e6c1e80d2..c5229063f0 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.idl
+++ b/Userland/Libraries/LibWeb/DOM/Document.idl
@@ -65,6 +65,8 @@ interface Document : Node {
readonly attribute Element? lastElementChild;
readonly attribute unsigned long childElementCount;
+ [CEReactions, Unscopable] undefined prepend((Node or DOMString)... nodes);
+
Element? querySelector(DOMString selectors);
[NewObject] NodeList querySelectorAll(DOMString selectors);