summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/DOM/Range.h
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-01-31 18:33:41 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-26 12:53:32 +0100
commitdfdc2ddb9eb45aa305a13511eed9dd417455e5a8 (patch)
tree0caa7bf3b54fee0df10c0c3696baad9b1a49e01f /Userland/Libraries/LibWeb/DOM/Range.h
parenta26f1b2ff953f441438b4415b7aa722ec523d2d0 (diff)
downloadserenity-dfdc2ddb9eb45aa305a13511eed9dd417455e5a8.zip
LibWeb: Implement Range.selectNode
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Range.h')
-rw-r--r--Userland/Libraries/LibWeb/DOM/Range.h2
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);
};
}