mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:28: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
|
@ -23,7 +23,7 @@ private:
|
|||
|
||||
class Element : public ParentNode {
|
||||
public:
|
||||
explicit Element(const String& tag_name);
|
||||
Element(Document&, const String& tag_name);
|
||||
virtual ~Element() override;
|
||||
|
||||
virtual String tag_name() const override { return m_tag_name; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue