From 2ebc0fad9384f252cebf8bf7b36a456fc19f6301 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 10 Jan 2020 16:04:14 +0100 Subject: [PATCH] Revert "Run adopt as part of insert" This reverts commit c825ceaf3cb77943f487f85533d8be79bccd2fe3. See #813 and #814 for context. --- dom.bs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/dom.bs b/dom.bs index 2a7c77e07..f1e2bfffa 100644 --- a/dom.bs +++ b/dom.bs @@ -2360,6 +2360,8 @@ of a node into a parent before a child, run the
  • If referenceChild is node, then set referenceChild to node's next sibling. +

  • Adopt node into parent's node document. +

  • Insert node into parent before referenceChild.

  • Return node. @@ -2424,8 +2426,6 @@ before a child, with an optional suppress observers flag, run

    For each node in nodes, in tree order:

      -
    1. Adopt node into parent's node document. -

    2. If child is null, then append node to parent's children. @@ -2538,6 +2538,8 @@ within a parent, run these steps:

    3. Let previousSibling be child's previous sibling. +

    4. Adopt node into parent's node document. +

    5. Let removedNodes be the empty set.

    6. @@ -2570,6 +2572,9 @@ within a parent, run these steps: within a parent, run these steps:
        +
      1. If node is non-null, then adopt node into parent's + node document. +

      2. Let removedNodes be parent's children.

      3. Let addedNodes be the empty set. @@ -5307,9 +5312,6 @@ must run these steps:

      4. If node is a shadow root, then throw a "{{HierarchyRequestError!!exception}}" {{DOMException}}. -

      5. If node is a {{DocumentFragment}} node whose - host is non-null, then return. -

      6. Adopt node into this.

      7. Return node.