Closed
Bug 139599
Opened 22 years ago
Closed 22 years ago
hitting Enter in a text field doesn't send the submit button if there is only one text field
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
VERIFIED
DUPLICATE
of bug 147850
People
(Reporter: vdvo, Assigned: alexsavulov)
Details
On Mozzila 1.0RC1, if a form has only one text field, you can submit it by
pressing Enter in it (which I find correct), but then the submit button is not
sent in the URL. If there are multiple text fields, the form is also submitted
by hitting Enter, but the submit button is sent. Example:
<form action="" method=get>
<input type=text name=text1>
<input type=hidden name=hidden1 value=anything>
<input type=submit name=submit1 value=submit1>
</form>
Hitting Enter on text1 results in URL: "file.html?text1=something"
<form action="" method=get>
<input type=text name=text1>
<input type=text name=text2>
<input type=hidden name=hidden1 value=anything>
<input type=submit name=submit1 value=submit1>
</form>
Hitting Enter on either of text1 or text2 results in URL:
"file.html?text1=something&text2=something&submit1=submit1"
I have found multiple bugs on the behavious of Enter, but am still not sure
which is the intended one. Certainly, though, it seems wrong to have a different
behaviour based on the number of text fields.
Comment 1•22 years ago
|
||
Unfortunately, this behavior is as-designed, since this is what IE does and
sites break if it's done differently.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Comment 3•22 years ago
|
||
this has been fixed after all
*** This bug has been marked as a duplicate of 147850 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → DUPLICATE
Updated•6 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
•