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

LibWeb: Implement ParentNode.prepend

`convert_nodes_to_single_node` is inside its own file so ChildNode can
include and use it without having to include other headers such as
DOM/Node.h. This is to prevent circular includes.
This commit is contained in:
Luke Wilde 2022-01-29 20:23:48 +00:00 committed by Andreas Kling
parent d7998c5dbd
commit d5c96c3ccf
9 changed files with 92 additions and 2 deletions

View file

@ -30,6 +30,8 @@ public:
NonnullRefPtr<HTMLCollection> get_elements_by_tag_name(FlyString const&);
NonnullRefPtr<HTMLCollection> get_elements_by_tag_name_ns(FlyString const&, FlyString const&);
ExceptionOr<void> prepend(Vector<Variant<NonnullRefPtr<Node>, String>> const& nodes);
protected:
ParentNode(Document& document, NodeType type)
: Node(document, type)