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:
parent
565dc0f296
commit
b47aceb480
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue