WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 12273
12285
File input value not copied on cloneNode()
https://bugs.webkit.org/show_bug.cgi?id=12285
Summary
File input value not copied on cloneNode()
Jeremy Nicoll
Reported
2007-01-15 08:44:19 PST
Example: <script type="text/javascript"> function press_this () { var f = document.getElementById('upload_1'); var f2 = f.cloneNode(true); document.getElementById('form2').appendChild(f2); } </script> <form action="test.php" method="POST" enctype="multipart/form-data"> <input type="file" name="upload" id="upload_1"/> </form> <input type="button" onclick="press_this();"/> <form action="test.php" method="POST" id="form2" enctype="multipart/form-data"> </form> -------------------------------- 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.
Attachments
example as described below
(529 bytes, text/html)
2007-01-15 23:08 PST
,
Darin Adler
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2007-01-15 09:03:28 PST
See also
Bug 12273
.
Darin Adler
Comment 2
2007-01-15 23:08:12 PST
Created
attachment 12476
[details]
example as described below
Darin Adler
Comment 3
2007-01-15 23:11:11 PST
If you test with the inspector, you'll see that the file input value *is* copied on cloneNode in TOT. So this has already been fixed. The reason you can't see the new value is the problem reported in
bug 12273
. So you can either consider this "already fixed" or a duplicate. I'm going to resolve it as a duplicate since the test case works fine with the fix I'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
***
Jeremy Nicoll
Comment 4
2007-01-16 07:46:34 PST
That'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.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug