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

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: annevk@annevk.nl
          Reporter: donjjordan@gmail.com
        QA Contact: public-webapps-bugzilla@w3.org
                CC: mike@w3.org, www-dom@w3.org

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.

Received on Thursday, 11 December 2014 05:05:06 UTC