diff --git a/dom.bs b/dom.bs index cc566a3a..11da98d9 100644 --- a/dom.bs +++ b/dom.bs @@ -2684,8 +2684,8 @@ do these things asynchronously, however. spec=HTML>style element; they immediately apply its style rules to the document. [[!HTML]] -
  • The HTML Standard's post-insertion steps run for the <{script}> element; they run - the script, which immediately observes the style rules that were applied in the above step. +
  • The HTML Standard's post-connection steps run for the <{script}> element; they run the + script, which immediately observes the style rules that were applied in the above step. [[!HTML]]
  • @@ -2697,15 +2697,15 @@ do these things asynchronously, however. to define that though as Olli suggests, so leaving that out for now. -->

    Specifications may also define post-insertion steps for all or some nodes. The -algorithm is passed insertedNode, as indicated in the insert algorithm below. +id=concept-node-post-connection-ext>post-connection steps for all or some nodes. +The algorithm is passed connectedNode, as indicated in the insert +algorithm below. -

    The purpose of the post-insertion steps is to provide an opportunity for nodes to perform any insertion-related operations that modify the node tree that -insertedNode participates in, create browsing contexts, or +

    The purpose of the post-connection steps is to provide an opportunity for nodes to perform any connection-related operations that modify the node tree that +connectedNode participates in, create browsing contexts, or otherwise execute JavaScript. These steps allow a batch of nodes to be inserted -atomically with respect to script, with all major side effects occurring after the +atomically with respect to script, with all major side effects occurring after the batch insertions into the node tree is complete. This ensures that all pending node tree insertions completely finish before more insertions can occur. @@ -2815,11 +2815,11 @@ before a child, with an optional suppress observers flag, run

    Let staticNodeList be a list of nodes, initially empty.

    -

    We collect all nodes before calling the post-insertion - steps on any one of them, instead of calling the post-insertion steps while - we're traversing the node tree. This is because the post-insertion steps can - modify the tree's structure, making live traversal unsafe, possibly leading to the - post-insertion steps being called multiple times on the same node.

    +

    We collect all nodes before calling the post-connection + steps on any one of them, instead of calling the post-connection steps while + we're traversing the node tree. This is because the post-connection steps can modify + the tree's structure, making live traversal unsafe, possibly leading to the post-connection + steps being called multiple times on the same node.

  • @@ -2833,7 +2833,7 @@ before a child, with an optional suppress observers flag, run
  • For each node in staticNodeList, if node is - connected, then run the post-insertion steps with node. + connected, then run the post-connection steps with node.