1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:17:44 +00:00

LibWeb: Add Document.getSelection

This commit is contained in:
Luke Wilde 2022-12-09 18:59:13 +00:00 committed by Linus Groh
parent 565dc0f296
commit b47aceb480

View file

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