[Webkit-unassigned] [Bug 12273] New: File input value reset in two methods.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Jan 14 15:49:33 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=12273
Summary: File input value reset in two methods.
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Blocker
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: jnicoll at seemysites.net
The current version of Safari does not reset the value of a file input object
if it is reassigned to another form object like so:
var f = document.getElementById('upload_file_ele');
f.parentNode.removeChild(f);
document.getElementById('form2').appendChild(f);
However, the latest nightly of WebKit resets the value so that the file input
will read "No file selected." This will cause issues for me in the future as I
am developing an AJAX script that depends on the behavior of Safari as it
currently stands because it monitors the upload of each file individually, and
I have to assign each file input to a seperate form object in order to do so.
There is a similar behavior which is present in the latest versions of Safari
and Webkit which are not present in Firefox or Opera, in which if the
cloneNode(true) method is invoked on a file input element then the value is not
cloned. This was the first way I tried to solve my before-mentioned problem.
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list