Closed
Bug 152716
Opened 23 years ago
Closed 23 years ago
Pressing the enter key from any of these fields fires the event for the first button in the form. The event for the button of type "submit" should be fired.
Categories
(Core :: DOM: Events, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: ssrit, Assigned: joki)
References
()
Details
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020612
BuildID: 2002061223
Pressing the enter key from any of these fields fires the event for the first
button in the form. The event for the button of type "submit" should be fired.
Hit the enter key from any of these fields, and a dialog will pop up telling
you the control number of the form element fired. Note: This is a dump of my
companies website when I noticed the bug.
Reproducible: Always
Steps to Reproduce:
1. Create multiple buttons on a form.
2. Assign one of these buttons the type "submit".
3. Press enter to trigger the default action of the form.
Actual Results: The wrong button was fired.
Expected Results: Fired the onclick event for the button of type "submit".
Comment 1•23 years ago
|
||
THe site is not working... are you using <BUTTON> tag? If so its default
behaviour is to submit the form, you need to specificly say <BUTTON
type="button"> if you want to use it as a regular button.
Reporter | ||
Comment 2•23 years ago
|
||
Hmm then perhaps it is IE's problem, as it isn't doing that. The site is my own
site running at home on Att cable... tends to be up and down regularly.
Comment 3•23 years ago
|
||
this is invalid then. Resolving. The IE is misbehaving, the standards clearly
say submit is the default value.
http://www.w3.org/TR/html4/interact/forms.html#h-17.5
"
type = submit|button|reset [CI]
This attribute declares the type of the button. Possible values:
submit: Creates a submit button. This is the default value.
reset: Creates a reset button.
button: Creates a push button.
"
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 4•23 years ago
|
||
I think that was my point. It does not fire the submit button UNDER MOZILLA.
It fires the onclick event for hte first <button> on the form REGARDLESS WETHER
IT IS "submit" or "button". But I dont care. I stopped trying to use this. ciao.
You need to log in
before you can comment on or make changes to this bug.
Description
•