From 6eb77d02fce21a66631effe70ecc9a182ab783b9 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 afe7880a0..85b43079b 100644 --- a/dom.bs +++ b/dom.bs @@ -2378,6 +2378,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. @@ -2442,8 +2444,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. @@ -2556,6 +2556,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. @@ -2588,6 +2590,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. @@ -5302,9 +5307,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.