mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb/DOM: Copy document's allow declarative shadow roots when cloning
Corresponds to 77920094a4
This commit is contained in:
parent
5c365884dd
commit
a424a06d45
Notes:
github-actions[bot]
2025-07-08 16:10:00 +00:00
Author: https://github.com/AtkinsSJ
Commit: a424a06d45
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5353
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 25 additions and 1 deletions
|
@ -1446,13 +1446,15 @@ WebIDL::ExceptionOr<GC::Ref<Node>> Node::clone_single_node(Document& document) c
|
|||
}
|
||||
}();
|
||||
|
||||
// Set copy’s encoding, content type, URL, origin, type, and mode to those of node.
|
||||
// Set copy’s encoding, content type, URL, origin, type, mode, allow declarative shadow roots, and custom element registry to those of node.
|
||||
document_copy->set_encoding(document_.encoding());
|
||||
document_copy->set_content_type(document_.content_type());
|
||||
document_copy->set_url(document_.url());
|
||||
document_copy->set_origin(document_.origin());
|
||||
document_copy->set_document_type(document_.document_type());
|
||||
document_copy->set_quirks_mode(document_.mode());
|
||||
document_copy->set_allow_declarative_shadow_roots(document_.allow_declarative_shadow_roots());
|
||||
// FIXME: Custom element registry.
|
||||
copy = move(document_copy);
|
||||
} else if (is_document_type()) {
|
||||
// -> DocumentType
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue