mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
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 :^).
This commit is contained in:
parent
7b755e6a58
commit
8b807e65d7
Notes:
sideshowbarker
2024-07-19 03:28:17 +09:00
Author: https://github.com/Lubrsi
Commit: 8b807e65d7
Pull-request: https://github.com/SerenityOS/serenity/pull/3198
17 changed files with 223 additions and 54 deletions
|
@ -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"; }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue