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

LibWeb: Implement Range.insertNode(node)

This commit is contained in:
Andreas Kling 2022-03-21 18:58:00 +01:00
parent d2f9f8bd4f
commit c74b1b6d65
3 changed files with 85 additions and 0 deletions

View file

@ -63,6 +63,8 @@ public:
ExceptionOr<NonnullRefPtr<DocumentFragment>> extract_contents();
ExceptionOr<void> insert_node(NonnullRefPtr<Node>);
String to_string() const;
private:
@ -82,6 +84,7 @@ private:
ExceptionOr<void> select(Node& node);
ExceptionOr<NonnullRefPtr<DocumentFragment>> extract();
ExceptionOr<void> insert(NonnullRefPtr<Node>);
bool contains_node(Node const&) const;
bool partially_contains_node(Node const&) const;