mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibWeb/DOM: Update an attribute's node document
Corresponds to b64559cc08
This commit is contained in:
@@ -2276,7 +2276,7 @@ void Document::adopt_node(Node& node)
|
||||
// 1. For each inclusiveDescendant in node’s shadow-including inclusive descendants:
|
||||
node.for_each_shadow_including_inclusive_descendant([&](DOM::Node& inclusive_descendant) {
|
||||
// 1. Set inclusiveDescendant’s node document to document.
|
||||
inclusive_descendant.set_document({}, *this);
|
||||
inclusive_descendant.set_document(Badge<Document> {}, *this);
|
||||
|
||||
// FIXME: 2. If inclusiveDescendant is an element, then set the node document of each attribute in inclusiveDescendant’s
|
||||
// attribute list to document.
|
||||
|
||||
Reference in New Issue
Block a user