From 50383549d4a15f75af01bb63f28f7565edd5c763 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Fri, 13 Dec 2024 13:50:38 +0100 Subject: [PATCH] keep algorithms in order of appearance --- dom.bs | 48 ++++++++++++++++++++++++------------------------ 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/dom.bs b/dom.bs index 6009aa59..1b06c692 100644 --- a/dom.bs +++ b/dom.bs @@ -4564,30 +4564,6 @@ and <{template}>. SVG ought to do the same for its <{script}> elements, but does -
-

To clone a node's children given a node node, a -node copy, a document document, and a boolean -subtree: - -

    -
  1. -

    For each child of node's children, in tree order: - -

      -
    1. Let childCopy be the result of cloning a single node given - child, document, and subtree. - -

    2. Append childCopy to copy. - -

    3. Clone a shadow host given child, childCopy, - document, and subtree. - -

    4. Clone a node's children given child, childCopy, - document, and subtree. -

    -
-
-

To clone a single node given a node node, document document, and boolean subtree: @@ -4685,6 +4661,30 @@ and <{template}>. SVG ought to do the same for its <{script}> elements, but does

+
+

To clone a node's children given a node node, a +node copy, a document document, and a boolean +subtree: + +

    +
  1. +

    For each child of node's children, in tree order: + +

      +
    1. Let childCopy be the result of cloning a single node given + child, document, and subtree. + +

    2. Append childCopy to copy. + +

    3. Clone a shadow host given child, childCopy, + document, and subtree. + +

    4. Clone a node's children given child, childCopy, + document, and subtree. +

    +
+
+

The cloneNode(subtree) method steps are: