diff --git a/dom.bs b/dom.bs index ca59eaf5..a0e276b0 100644 --- a/dom.bs +++ b/dom.bs @@ -2655,7 +2655,13 @@ of a node into a parent before a child, run the

To ensure pre-move validity of a node into a parent before a child, run these steps: -

    +
  1. If either parent or node are not connected, then + throw a "{{HierarchyRequestError!!exception}}" {{DOMException}}.

  2. + +
  3. If parent's shadow-including root is not the same as + node's shadow-including root, then throw a + "{{HierarchyRequestError!!exception}}" {{DOMException}}.

  4. +
  5. If node is not an {{Element}} or a {{CharacterData}} node, then throw a "{{HierarchyRequestError!!exception}}" {{DOMException}}.

  6. @@ -5154,21 +5160,8 @@ return the result of pre-removing child from this. method steps are:
      -
    1. If any of the following conditions are false:

      - - - -
    2. then throw "{{HierarchyRequestError!!exception}}" {{DOMException}}.

      -
    3. Let return node be the result of pre-moving node into - this before child.

    4. + this before child, rethrowing any exceptions.

    5. Return return node.