diff --git a/source b/source index e686e218791..973a4a193df 100644 --- a/source +++ b/source @@ -3323,8 +3323,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.
If either of the following is true:
+ +Document node that already has an element child,then remove lastNode.
+ +Otherwise:
+ +Assert: ensure pre-insert validity given + lastNode, the node in which adjustedInsertionLocation finds itself, + null, 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.