<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27565</bug_id>
          
          <creation_ts>2014-12-11 05:05:01 +0000</creation_ts>
          <short_desc>Step 15-1 in the clone range algorithm should specify a deep clone of the contained child.</short_desc>
          <delta_ts>2014-12-11 12:16:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>DOM</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>donjjordan</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>mike</cc>
    
    <cc>www-dom</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>116131</commentid>
    <comment_count>0</comment_count>
    <who name="">donjjordan</who>
    <bug_when>2014-12-11 05:05:01 +0000</bug_when>
    <thetext>Regarding the algorithm for cloning the contents of a Range at https://dom.spec.whatwg.org/#concept-range-clone

Step 15 reads:

&lt;snip&gt;

15. For each contained child in contained children:

    1. Let clone be a clone of contained child.

    2. Append clone to fragment.

&lt;/snip&gt;

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116141</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-12-11 12:16:42 +0000</bug_when>
    <thetext>https://github.com/whatwg/dom/commit/5fc973c1d2fda9c92e43dba9c946eba389f8546c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>