1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:17:34 +00:00

LibWeb: Implement Range.selectNode

This commit is contained in:
Luke Wilde 2022-01-31 18:33:41 +00:00 committed by Andreas Kling
parent a26f1b2ff9
commit dfdc2ddb9e
3 changed files with 34 additions and 0 deletions

View file

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