mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibHTML: Make sure every DOM Node belongs to a Document
This commit is contained in:
parent
13860e4dd8
commit
1b8509a0c9
9 changed files with 28 additions and 22 deletions
|
@ -8,8 +8,8 @@ public:
|
|||
template<typename F> void for_each_child(F);
|
||||
|
||||
protected:
|
||||
explicit ParentNode(NodeType type)
|
||||
: Node(type)
|
||||
explicit ParentNode(Document& document, NodeType type)
|
||||
: Node(document, type)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue