LibWeb/DOM: Update an attribute's node document

Corresponds to b64559cc08
This commit is contained in:
Sam Atkins
2025-02-21 12:01:20 +00:00
parent f7276bfab3
commit 0fcd7f9aea
7 changed files with 68 additions and 7 deletions

View File

@@ -2276,7 +2276,7 @@ void Document::adopt_node(Node& node)
// 1. For each inclusiveDescendant in nodes shadow-including inclusive descendants:
node.for_each_shadow_including_inclusive_descendant([&](DOM::Node& inclusive_descendant) {
// 1. Set inclusiveDescendants 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 inclusiveDescendants
// attribute list to document.