summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/DOM/DocumentFragment.h
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-08-17 19:14:30 +0100
committerAndreas Kling <kling@serenityos.org>2020-08-17 22:57:05 +0200
commit8b807e65d7fe423a35a7d506f89b0532f45aa032 (patch)
tree26a198bb82d6ccc131a7d8a42934d0c661003edf /Libraries/LibWeb/DOM/DocumentFragment.h
parent7b755e6a58b84ab81aad588b7eb17bc7f4be8c46 (diff)
downloadserenity-8b807e65d7fe423a35a7d506f89b0532f45aa032.zip
LibWeb: Add Comment and DocumentFragment bindings, move querySelector...
...{All} to ParentNode. Exposes createDocumentFragment and createComment on Document. Stubs out the document.body setter. Also adds ParentNode back :^).
Diffstat (limited to 'Libraries/LibWeb/DOM/DocumentFragment.h')
-rw-r--r--Libraries/LibWeb/DOM/DocumentFragment.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/Libraries/LibWeb/DOM/DocumentFragment.h b/Libraries/LibWeb/DOM/DocumentFragment.h
index 9bc8f39d14..b969fbde4a 100644
--- a/Libraries/LibWeb/DOM/DocumentFragment.h
+++ b/Libraries/LibWeb/DOM/DocumentFragment.h
@@ -36,10 +36,8 @@ class DocumentFragment
: public ParentNode
, public NonElementParentNode<DocumentFragment> {
public:
- DocumentFragment(Document& document)
- : ParentNode(document, NodeType::DOCUMENT_FRAGMENT_NODE)
- {
- }
+ DocumentFragment(Document& document);
+ virtual ~DocumentFragment() override;
virtual FlyString node_name() const override { return "#document-fragment"; }
};