LibWeb: Implement Range.collapse

This commit is contained in:
Luke Wilde 2022-01-31 18:42:36 +00:00 committed by Andreas Kling
commit 2b2dbdc74f
Notes: sideshowbarker 2024-07-17 18:14:28 +09:00
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 {