[Bug 27565] New: Step 15-1 in the clone range algorithm should specify a deep clone of the contained child.

[email protected]
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27565

            Bug ID: 27565
           Summary: Step 15-1 in the clone range algorithm should specify
                    a deep clone of the contained child.
           Product: WebAppsWG
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DOM
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]

Regarding the algorithm for cloning the contents of a Range at
https://dom.spec.whatwg.org/#concept-range-clone

Step 15 reads:

<snip>

15. For each contained child in contained children:

    1. Let clone be a clone of contained child.

    2. Append clone to fragment.

</snip>

Step 15 should read:

15. For each contained child in contained children:

    1. Let clone be a DEEP clone of contained child.

    2. Append clone to fragment.


All of the other cloning operations in the Range specification use a shallow
clone (e.g. node.cloneNode(false)). The above case only requires a deep,
recursive clone of the contained child (e.g. node.cloneNode(true)). An
experienced implementer can figure it out, but I think it should be clarified
in the specification.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.