diff --git a/dom.bs b/dom.bs index bb32e85b6..c4866d5d9 100644 --- a/dom.bs +++ b/dom.bs @@ -1483,30 +1483,19 @@ into a parent before a child, with an optional a {{DocumentFragment}} node, and a list containing solely node otherwise. -
  • - If node is a {{DocumentFragment}} - node, queue a mutation record - of "childList" for node with removedNodes - nodes. - - Note: This step intentionally does not pay attention to the - suppress observers flag. -
  • If node is a {{DocumentFragment}} node, remove its children with the suppress observers flag set. -
  • If suppress observers flag is unset, - queue a mutation record of "childList" for - parent with addedNodes nodes, - nextSibling child, and previousSibling - child's - previous sibling - or parent's - last child if - child is null. +
  • + If node is a {{DocumentFragment}} node, + queue a mutation record of "childList" for + node with removedNodes nodes. + + Note: This step intentionally does not pay attention to the + suppress observers flag.
  • For each newNode in nodes, in @@ -1520,6 +1509,13 @@ into a parent before a child, with an optional
  • Run the insertion steps with newNode. + +
  • If suppress observers flag is unset, + queue a mutation record of "childList" for + parent with addedNodes nodes, nextSibling + child, and previousSibling child's + previous sibling or parent's last child if + child is null. @@ -1740,29 +1736,25 @@ steps:
  • Let oldPreviousSibling be node's previous sibling -
  • If suppress observers flag is unset, - queue a mutation record of "childList" for - parent with removedNodes a list solely containing - node, nextSibling node's - next sibling, - and previousSibling oldPreviousSibling. - -
  • For each ancestor - ancestor of node, if - ancestor has any - registered observers whose - options' - {{MutationObserverInit/subtree}} is true, then - for each such registered observer registered, append a - transient registered observer whose observer and - options are identical to those of registered and source - which is registered to node's list of - registered observers. -
  • Remove node from its parent.
  • Run the removing steps with node, parent, and oldPreviousSibling. + +
  • For each inclusive ancestor ancestor of + parent, if ancestor has any registered observers + whose options' {{MutationObserverInit/subtree}} is true, then for each + such registered observer registered, append a + transient registered observer whose observer and options + are identical to those of registered and source which is + registered to node's list of + registered observers. + +
  • If suppress observers flag is unset, + queue a mutation record of "childList" for + parent with removedNodes a list solely containing node, + nextSibling node's next sibling, and previousSibling + oldPreviousSibling. diff --git a/dom.html b/dom.html index 5edcb56d7..e6fd251e9 100644 --- a/dom.html +++ b/dom.html @@ -88,7 +88,7 @@

    DOM

    Living Standard — Last Updated -

    +
    @@ -1997,18 +1997,6 @@

    node otherwise. -
  • - If node is a DocumentFragment - node, queue a mutation record - of "childList" for node with removedNodes - nodes. - - -

    Note: This step intentionally does not pay attention to the - suppress observers flag.

    - - -
  • If node is a DocumentFragment node, remove its @@ -2016,15 +2004,15 @@

    suppress observers flag set. -
  • If suppress observers flag is unset, - queue a mutation record of "childList" for - parent with addedNodes nodes, - nextSibling child, and previousSibling - child’s - previous sibling - or parent’s - last child if - child is null. +
  • + If node is a DocumentFragment node, + queue a mutation record of "childList" for + node with removedNodes nodes. + + +

    Note: This step intentionally does not pay attention to the + suppress observers flag.

    +
  • @@ -2044,6 +2032,14 @@

    + + +
  • If suppress observers flag is unset, + queue a mutation record of "childList" for + parent with addedNodes nodes, nextSibling + child, and previousSibling child’s + previous sibling or parent’s last child if + child is null. @@ -2317,32 +2313,28 @@

    previous sibling -
  • If suppress observers flag is unset, - queue a mutation record of "childList" for - parent with removedNodes a list solely containing - node, nextSibling node’s - next sibling, - and previousSibling oldPreviousSibling. - - -
  • For each ancestor - ancestor of node, if - ancestor has any - registered observers whose - options' - subtree is true, then - for each such registered observer registered, append a - transient registered observer whose observer and - options are identical to those of registered and source - which is registered to node’s list of - registered observers. - -
  • Remove node from its parent.
  • Run the removing steps with node, parent, and oldPreviousSibling. + + +
  • For each inclusive ancestor ancestor of + parent, if ancestor has any registered observers + whose options' subtree is true, then for each + such registered observer registered, append a + transient registered observer whose observer and options + are identical to those of registered and source which is + registered to node’s list of + registered observers. + + +
  • If suppress observers flag is unset, + queue a mutation record of "childList" for + parent with removedNodes a list solely containing node, + nextSibling node’s next sibling, and previousSibling + oldPreviousSibling.