LibHTML: Make sure every DOM Node belongs to a Document

This commit is contained in:
Andreas Kling 2019-09-29 11:43:07 +02:00
commit 1b8509a0c9
Notes: sideshowbarker 2024-07-19 11:53:57 +09:00
9 changed files with 28 additions and 22 deletions

View file

@ -5,7 +5,7 @@
class Text final : public Node {
public:
explicit Text(const String&);
explicit Text(Document&, const String&);
virtual ~Text() override;
const String& data() const { return m_data; }