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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>12285</bug_id>
          
          <creation_ts>2007-01-15 08:44:19 -0800</creation_ts>
          <short_desc>File input value not copied on cloneNode()</short_desc>
          <delta_ts>2007-01-16 07:46:34 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>420+</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>12273</dup_id>
          
          <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 name="Jeremy Nicoll">jnicoll</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34769</commentid>
    <comment_count>0</comment_count>
    <who name="Jeremy Nicoll">jnicoll</who>
    <bug_when>2007-01-15 08:44:19 -0800</bug_when>
    <thetext>Example: 

&lt;script type=&quot;text/javascript&quot;&gt;
        function press_this () {
                var f = document.getElementById(&apos;upload_1&apos;);
                var f2 = f.cloneNode(true);
                document.getElementById(&apos;form2&apos;).appendChild(f2);
        }
&lt;/script&gt;

&lt;form action=&quot;test.php&quot; method=&quot;POST&quot; enctype=&quot;multipart/form-data&quot;&gt;
        &lt;input type=&quot;file&quot; name=&quot;upload&quot; id=&quot;upload_1&quot;/&gt;
&lt;/form&gt;

&lt;input type=&quot;button&quot; onclick=&quot;press_this();&quot;/&gt;
&lt;form action=&quot;test.php&quot; method=&quot;POST&quot; id=&quot;form2&quot; enctype=&quot;multipart/form-data&quot;&gt;

&lt;/form&gt; 
--------------------------------
   The selected value is not copied with cloneNode() in either the latest version of Safari or the Webkit nightly.  It works properly in Firefox and Opera, but not in IE7.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34775</commentid>
    <comment_count>1</comment_count>
    <who name="David Kilzer (:ddkilzer)">ddkilzer</who>
    <bug_when>2007-01-15 09:03:28 -0800</bug_when>
    <thetext>See also Bug 12273.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34740</commentid>
    <comment_count>2</comment_count>
      <attachid>12476</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-15 23:08:12 -0800</bug_when>
    <thetext>Created attachment 12476
example as described below</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34741</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2007-01-15 23:11:11 -0800</bug_when>
    <thetext>If you test with the inspector, you&apos;ll see that the file input value *is* copied on cloneNode in TOT. So this has already been fixed. The reason you can&apos;t see the new value is the problem reported in bug 12273. So you can either consider this &quot;already fixed&quot; or a duplicate. I&apos;m going to resolve it as a duplicate since the test case works fine with the fix I&apos;ve attached to the other bug.

Sorry for asking you to report a new bug and then marking it as a duplicate!

*** This bug has been marked as a duplicate of 12273 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34624</commentid>
    <comment_count>4</comment_count>
    <who name="Jeremy Nicoll">jnicoll</who>
    <bug_when>2007-01-16 07:46:34 -0800</bug_when>
    <thetext>That&apos;s ok - as a developer myself I know that it can take a while to track down a bug and find out what it actually is.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>12476</attachid>
            <date>2007-01-15 23:08:12 -0800</date>
            <delta_ts>2007-01-15 23:08:12 -0800</delta_ts>
            <desc>example as described below</desc>
            <filename>example.html</filename>
            <type>text/html</type>
            <size>529</size>
            <attacher name="Darin Adler">darin</attacher>
            
              <data encoding="base64">PHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPgogICAgICAgIGZ1bmN0aW9uIHByZXNzX3Ro
aXMgKCkgewogICAgICAgICAgICAgICAgdmFyIGYgPSBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgn
dXBsb2FkXzEnKTsKICAgICAgICAgICAgICAgIHZhciBmMiA9IGYuY2xvbmVOb2RlKHRydWUpOwog
ICAgICAgICAgICAgICAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoJ2Zvcm0yJykuYXBwZW5kQ2hp
bGQoZjIpOwogICAgICAgIH0KPC9zY3JpcHQ+Cgo8Zm9ybSBhY3Rpb249InRlc3QucGhwIiBtZXRo
b2Q9IlBPU1QiIGVuY3R5cGU9Im11bHRpcGFydC9mb3JtLWRhdGEiPgogICAgICAgIDxpbnB1dCB0
eXBlPSJmaWxlIiBuYW1lPSJ1cGxvYWQiIGlkPSJ1cGxvYWRfMSIvPgo8L2Zvcm0+Cgo8aW5wdXQg
dHlwZT0iYnV0dG9uIiBvbmNsaWNrPSJwcmVzc190aGlzKCk7Ii8+Cjxmb3JtIGFjdGlvbj0idGVz
dC5waHAiIG1ldGhvZD0iUE9TVCIgaWQ9ImZvcm0yIiBlbmN0eXBlPSJtdWx0aXBhcnQvZm9ybS1k
YXRhIj4KCjwvZm9ybT4gCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>