diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-01-31 18:33:41 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-26 12:53:32 +0100 |
commit | dfdc2ddb9eb45aa305a13511eed9dd417455e5a8 (patch) | |
tree | 0caa7bf3b54fee0df10c0c3696baad9b1a49e01f /Userland/Libraries/LibWeb/DOM/Range.h | |
parent | a26f1b2ff953f441438b4415b7aa722ec523d2d0 (diff) | |
download | serenity-dfdc2ddb9eb45aa305a13511eed9dd417455e5a8.zip |
LibWeb: Implement Range.selectNode
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Range.h')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Range.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Range.h b/Userland/Libraries/LibWeb/DOM/Range.h index e23814e428..9b10cf2f4c 100644 --- a/Userland/Libraries/LibWeb/DOM/Range.h +++ b/Userland/Libraries/LibWeb/DOM/Range.h @@ -30,6 +30,7 @@ public: ExceptionOr<void> set_start_after(Node& node); ExceptionOr<void> set_end_before(Node& node); ExceptionOr<void> set_end_after(Node& node); + ExceptionOr<void> select_node(Node& node); // https://dom.spec.whatwg.org/#dom-range-start_to_start enum HowToCompareBoundaryPoints : u16 { @@ -61,6 +62,7 @@ private: }; ExceptionOr<void> set_start_or_end(Node& node, u32 offset, StartOrEnd start_or_end); + ExceptionOr<void> select(Node& node); }; } |