summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-12-09 18:59:13 +0000
committerLinus Groh <mail@linusgroh.de>2022-12-10 00:21:10 +0000
commitb47aceb480fff5aa6cab7f23553d6fa39840b577 (patch)
tree4b619c6de20d0c62e0fb5f9b70dec9a0cd0dc081 /Userland
parent565dc0f2966db84c7ef3f2ad6fa78ad1a2a08981 (diff)
downloadserenity-b47aceb480fff5aa6cab7f23553d6fa39840b577.zip
LibWeb: Add Document.getSelection
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Document.idl3
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Document.idl b/Userland/Libraries/LibWeb/DOM/Document.idl
index 2ced26cf6f..f4342674f6 100644
--- a/Userland/Libraries/LibWeb/DOM/Document.idl
+++ b/Userland/Libraries/LibWeb/DOM/Document.idl
@@ -18,6 +18,7 @@
#import <HTML/HTMLElement.idl>
#import <HTML/HTMLHeadElement.idl>
#import <HTML/HTMLScriptElement.idl>
+#import <Selection/Selection.idl>
// https://dom.spec.whatwg.org/#document
[Exposed=Window]
@@ -103,6 +104,8 @@ interface Document : Node {
[NewObject] NodeIterator createNodeIterator(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
[NewObject] TreeWalker createTreeWalker(Node root, optional unsigned long whatToShow = 0xFFFFFFFF, optional NodeFilter? filter = null);
+
+ Selection? getSelection();
};
Document includes ParentNode;