Closed Bug 41646 Opened 25 years ago Closed 25 years ago

form elements with style="display: none" are not being sent to server on posts

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Linux
defect

Tracking

()

VERIFIED DUPLICATE of bug 34297

People

(Reporter: djoham, Assigned: pollmann)

Details

Attachments

(3 files)

From Bugzilla Helper: User-Agent: Mozilla/4.7 [en] (X11; I; Linux 2.2.14-15mdk i686) BuildID: 2000060221 if you have a form element (I've tried textarea and text) that has a stylesheet of style="display: none" It does not appear that that form elements value is being passed to the server when a post is performed. Reproducible: Always Steps to Reproduce: 1. open test case that I'll attach 2. Ensure the text box is visible and press the submit button 3. Re-open test case. Now toggle the display property of the text box to none. 4. Press submit again Actual Results: When the text box is visible (i.e. display: block), you will get its contents echoed back to you. When the text box is invisible (display: none) a null is reported on the server side. Expected Results: I would expect that the form element's value would be sent, regardless of the display property
Attached file client side test case (deleted) —
It's true, so CONFIRMED. I have not looked at this in depth. Note that INPUTs of type HIDDEN are correctly sent, and they are display:none, so the issue may be more complicated than it seems.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Normally we get the current state of the textarea and text field from its frame. But if it is set to display:none a frame is not created. In this case we need to get the current value from the saved data. Reassigning to Eric.
Assignee: rods → pollmann
This is already reported as bug 34297, thanks! *** This bug has been marked as a duplicate of 34297 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Verified Duplicate.
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: