1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

LibWeb: Implement Range.collapse

This commit is contained in:
Luke Wilde 2022-01-31 18:42:36 +00:00 committed by Andreas Kling
parent dfdc2ddb9e
commit 2b2dbdc74f
3 changed files with 16 additions and 0 deletions

View file

@ -31,6 +31,7 @@ public:
ExceptionOr<void> set_end_before(Node& node);
ExceptionOr<void> set_end_after(Node& node);
ExceptionOr<void> select_node(Node& node);
void collapse(bool to_start);
// https://dom.spec.whatwg.org/#dom-range-start_to_start
enum HowToCompareBoundaryPoints : u16 {