Closed Bug 182388 Opened 22 years ago Closed 22 years ago

Hidding a div containing form elements loses file input values

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 152844

People

(Reporter: Rob.Jones, Unassigned)

Details

(Keywords: dataloss)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021016

When you use 
    var ele = document.getElementById("theForm");
    ele.style.display = 'none';
    ele.style.display = 'block';
on a div (called 'theForm')
the values of any file upload controls are lost.
I will attach a testcase.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Attached file testcase
Moving this to DOM Style so you guys get notified as well.
Not sure who should read this one really.
Component: Layout: Form Controls → DOM Style
Summary: Hidding a div containing form elements loses file input values → Hidding a div containing form elements loses file input values
Cant tick the 
reassign bug to owner of selected component
(have changed component)
As when i submit bugzilla complains I am trying to change
status from unconfirmed to new even though I have not ticked
the confirm bug box!
This may be related to bug #179440 but I figure its a different bug as
this is hidding/showing a div with a form and 179440 is using innerHTML
to modify a form with a fileUpload.
This looks unhappy....
Status: UNCONFIRMED → NEW
Component: DOM Style → Layout: Form Controls
Ever confirmed: true
Keywords: dataloss
WFM, build numbers and such indicate this is bug 152844, which was fixed a week
or so ago.

*** This bug has been marked as a duplicate of 152844 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Yep.  That's it.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: