diff --git a/source b/source index 8c38ccd201c..72cdb4312c0 100644 --- a/source +++ b/source @@ -3324,8 +3324,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute descendant, shadow-including ancestor, shadow-including descendant, - shadow-including inclusive descendant, and - shadow-including inclusive ancestor concepts + shadow-including inclusive descendant, + shadow-including inclusive ancestor, and + host-including inclusive ancestor concepts
Let insertionLocation be commonAncestor, after its last child, if any.
Insert whatever lastNode ended up being in the previous step at the - adjusted insertion location given insertionLocation.
Let adjustedInsertionLocation be the adjusted insertion location + given insertionLocation.
Let target be the node in which adjustedInsertionLocation finds + itself.
Let refNode be the node adjustedInsertionLocation is immediately + before, or null if adjustedInsertionLocation is after target's last + child.
If lastNode's parent is non-null, then remove lastNode.
If any of the following are true:
+ +Document node that already has an element child;
+ orthen lastNode is dropped on the floor.
+Otherwise:
+ +Assert: ensure pre-insert validity given + lastNode, target, refNode, and « » does not throw.
Insert lastNode at adjustedInsertionLocation.
Create an element for the token for which formattingElement was created, in the HTML namespace, with furthestBlock as the intended parent.