diff --git a/dom.bs b/dom.bs index 78ee63051..1ccea02f2 100644 --- a/dom.bs +++ b/dom.bs @@ -2427,10 +2427,8 @@ before a child, with an optional suppress observers flag, run its end offset by count. -
  • Let nodes be node's - children if node is - a {{DocumentFragment}} node, and a - list containing solely node otherwise. +
  • Let nodes be node's children, if node is a + {{DocumentFragment}} node, « node » otherwise.

  • If node is a {{DocumentFragment}} node, @@ -2602,7 +2600,7 @@ within a parent, run these steps:

    If child's parent is not null, then:

      -
    1. Set removedNodes to a list solely containing child. +

    2. Set removedNodes to « child ».

    3. Remove child from its parent with the suppress observers flag set. @@ -2610,8 +2608,8 @@ within a parent, run these steps:

      The above can only be false if child is node. -

    4. Let nodes be node's children if node is a - {{DocumentFragment}} node, and a list containing solely node otherwise. +
    5. Let nodes be node's children if node is a + {{DocumentFragment}} node, « node » otherwise. @@ -2637,11 +2635,12 @@ To replace all with a

    6. Let removedNodes be parent's children. -
    7. Let addedNodes be the empty list if node is - null, node's children if - node is a {{DocumentFragment}} - node, and a list containing node - otherwise. +
    8. Let addedNodes be the empty list. + +

    9. If node is {{DocumentFragment}} node, then set addedNodes to + node's children. + +

    10. Otherwise, if node is non-null, set addedNodes to « node ».

    11. Remove all parent's children, in