Closed
Bug 12729
Opened 27 years ago
Closed 27 years ago
hidden params are not submitted correctly (HTTP Get)
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M10
People
(Reporter: tiemann, Assigned: kmcclusk)
References
()
Details
Attachments
(1 file)
|
795 bytes,
text/html
|
Details |
Hidden params in a form are sometimes not submitted correctly.
I tracked it down and found that a "<p>" inbetween the parameters causes the
hidden parameter before not to be submitted. The form uses HTTP-Get method.
A test page to reproduce the bug is appended below.
I tested on Win NT only. Mozilla M8 shows correct behaviour. M9 fails.
Bjoern
-----------------------------------------------------------------------------
<html><body>
<hr>
Form with two hidden parameters, a "<p>" inbetween:
<form method=get action="http://www.mozilla.org/cgi-bin/script">
<input type=hidden name=param1 value=val1>
<p>
<input type=hidden name=param2 value=val2>
<input type=submit value=submit>
</form>
<p>Loads URL (wrong!):
<pre>http://www.mozilla.org/cgi-bin/script?param2=val2</pre>
<hr>
Form with two hidden parameters:
<form method=get action="http://www.mozilla.org/cgi-bin/script">
<input type=hidden name=param1 value=val1>
<input type=hidden name=param2 value=val2>
<input type=submit value=submit>
</form>
<p>Loads URL (correct!):
<pre>http://www.mozilla.org/cgi-bin/script?param1=val1¶m2=val2</pre>
<hr>
</body></html>
Updated•27 years ago
|
Assignee: karnaze → kmcclusk
Comment 1•27 years ago
|
||
Reassigning to Kevin.
| Assignee | ||
Comment 2•27 years ago
|
||
The problem is the mForm field for the hidden element under the paragraph is set
to nsnull. The content sink sets the mForm field correctly, but later the sink
does a CloseForm which demmotes the paragraph container causing the hidden
element to be removed. The removal of the hidden element causes it's mForm field
to be set to nsnull. The mForm fields needs to be reset to the appropriate
container after it is removed in SinkContext::DemoteContainer;
| Assignee | ||
Updated•27 years ago
|
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•27 years ago
|
||
CC'ing vidur
| Assignee | ||
Updated•27 years ago
|
Target Milestone: M10
| Assignee | ||
Comment 8•27 years ago
|
||
Have fix waiting for tree to open
| Assignee | ||
Updated•27 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 9•27 years ago
|
||
Fixed in Sept 1, 1999 3:28PM build.
Comment 10•27 years ago
|
||
Status: RESOLVED → VERIFIED
Comment 11•27 years ago
|
||
Verified using the 1999090908 build, NT. The attached test case does the right
thing now.
Updated•7 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•