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
  • The first child, last child, next sibling, @@ -147342,8 +147343,53 @@ document.body.appendChild(text);
  • 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:

    + + + +

    then lastNode is dropped on the floor.

    +
  • + +
  • +

    Otherwise:

    + +
      +
    1. Assert: ensure pre-insert validity given + lastNode, target, refNode, and « » does not throw.

    2. + +
    3. Insert lastNode at adjustedInsertionLocation.

    4. +
    +
  • Create an element for the token for which formattingElement was created, in the HTML namespace, with furthestBlock as the intended parent.