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
  • The first child, last child, next sibling, @@ -3343,7 +3344,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
  • The find flattened slottables algorithm
  • The manual slot assignment concept
  • The assign a slot algorithm
  • -
  • The pre-insert, insert, append, replace, replace all, string replace all, remove, and adopt algorithms for nodes
  • +
  • The pre-insert, ensure pre-insert validity, insert, append, replace, replace all, string replace all, remove, and adopt algorithms for nodes
  • The descendant concept
  • The insertion steps,
  • The post-connection steps, @@ -147003,8 +147004,32 @@ 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.

  • + +
  • +

    If either of the following is true:

    + + + +

    then remove lastNode.

    + +

    Otherwise:

    + +
      +
    1. Assert: ensure pre-insert validity given + lastNode, the node in which adjustedInsertionLocation finds itself, + null, 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.