On Wed, 19 Oct 2005 20:38:24 GMT,
ji*@jibbering.com (Jim Ley) wrote:
On 19 Oct 2005 13:25:47 -0700, ga****@gmail.com wrote:
In Mozilla (Firefox 1.0.7) I can cloneNode a file input element that
has a selected file value and appendChild it to another form without a
problem.
IE 6 loses the selected file value. Is this a bug with IE that it
loses the value, or with FF that it keeps it?
I don't think either could truly be considered a bug, but I'm afraid
you'll just have to live with IE's behaviour.
Jim.
I'd consider Firefox's behaviour to be (slightly) less secure than
IE's behaviour. After all, is the value of a file input on one form
really applicable to a file input cloned and placed on another form?
In a browser that doesn't allow linking to file:/// links from the
local hard disk when the page is loaded from
http://, retaining the
value of a cloned file input seems odd, out-of-place and unintended to
me. So IE's behaviour seems the "more correct" of the two to me.
I'm sure an equally weak argument could be made as to why it is okay
and proper to retain the value of a cloned file input.
--
Grant Wagner <sq*******@yahoo.com>
comp.lang.javascript FAQ -
http://jibbering.com/faq