Closed
Bug 102273
Opened 23 years ago
Closed 23 years ago
The checkbox & radio button registers a keyboard 'enter' as a form submission
Categories
(Core :: Layout: Form Controls, defect, P1)
Tracking
()
RESOLVED
WONTFIX
Future
People
(Reporter: madhur, Assigned: rods)
References
()
Details
1. Go to the above mentioned url
2. bring focus on any checkbox by tabbing to it.
3. hit the 'enter' key
actual:
There is a form submission. It infact goes to the following url ( in my case)
http://bugzilla.mozilla.org/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_s
tatus=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtyp
e2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfiel
dfrom=&chfieldto=Now&chfieldvalue=&short_desc=&short_desc_type=allwordssubstr&lo
ng_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordss
ubstr&status_whiteboard=&status_whiteboard_type=allwordssubstr&keywords=&keyword
s_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&order=%2
7Importance%27
----- really wierd ------
expected:
When i tab to a checkbox and hit the enter key - it is just suposed to
select/deselect the checkbox control - not do form submission
Happening on all platforms - 09/28/01 branch builds
Reporter | ||
Comment 1•23 years ago
|
||
nominating for nsbranch. ** A really bad bug **
Keywords: nsbranch
Reporter | ||
Comment 2•23 years ago
|
||
The same behaviour is seen for input-Radio form controls.
Go to http://lc3.law5.hotmail.passport.com/cgi-bin/login
tab to the radio buttons . The focus is now on the control. Hit 'enter' key.
It does a form submission too. It displays the following message --
"You are about to leave an encrypted page. Information you send or receive from
now on could easily be read by third party."
Summary: The checkbox registers a keyboard 'enter' as a form submission → The checkbox & radio button registers a keyboard 'enter' as a form submission
Comment 3•23 years ago
|
||
Should this one be nsbranch+?
Assignee | ||
Updated•23 years ago
|
Status: NEW → ASSIGNED
Priority: -- → P1
Target Milestone: --- → mozilla0.9.5
Assignee | ||
Comment 4•23 years ago
|
||
This behavior was caused by pollmann's checkin 1.180 of nsHTMLInputElement.cpp,
he did it on purpose, but the Bug # was wrong in the checkin and I can't find
the bug.
Comment 5•23 years ago
|
||
This was done to make mozilla work like IE does, IE does exactly the same thing,
so this is as designed, unless I missed something. The bug Eric was fixing when
he changed how this works was bug 22526 (see patch 5).
IMO this is a WONTFIX, we now work as IE does, and most people seem to love it.
Assignee | ||
Comment 6•23 years ago
|
||
won't fix, it is IE behavior
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Reporter | ||
Comment 7•23 years ago
|
||
In IE 6.0 --
when I do a keyboard 'enter' - it **does not** result in a form submission.
Infact nothing happens when u hit 'enter' in the checkbox form control or radio
button form control ( I suppose this is the behaviour we are trying to get in NS
6.2)
whereas, in build ID : 2001-10-01-05-0.9.4 (branch) Win32--
a keyboard 'enter' - results in a form submission.
I disagree that the latest build works in the same manner as IE does.
For our product to be following what IE does, with respect to checkbox and radio
button - we need to rectify the 'form submission' problem.
I am reopening this bug for further evaluation.
Point to consider
=================
** upon hitting keyboard 'enter' for checkbox and radio button , the result
should not be form submission. Like IE, nothing should happen - i.e. the control
should not be checked/unchecked **
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 8•23 years ago
|
||
The current mozilla behavior matches IE 5.5's behavior, I don't know what IE 6.0
does, nor am I sure we need to care, hardly anyone uses IE 6.0 yet.
Assignee | ||
Comment 9•23 years ago
|
||
The difference between us and IE 6.0, is that we always submit when a radio or
check has focus and IE only submits if there is a submitter (input=image,
submit, button, html4 button)
Status: REOPENED → ASSIGNED
Reporter | ||
Comment 10•23 years ago
|
||
checked in IE 5.5 --
1) For checkbox controls, user can tab through the controls but can not
select/deselect using keyboard 'enter'. see
http://bugzilla.mozilla.org/query.cgi
2) For Radio buttons, user can not even tab through the unselected radio button
control. see http://www.hotmail.com ; http://search.yahoo.com/search/options?p=
in both these cases - hitting enter on checkbox or radio button does not result
in a form submission.
our product - build id : 2001-10-01-05-0.9.4 (branch build) win32 - is ** doing
a form submission **
What I have understood from the previous developers comments is that - our
product should behave in the same manner as does IE 5.5 (above mentioned points
1 & 2). I am sure we do not want to do a form submission, too. IE 5.5 does not
do that.
Comment 11•23 years ago
|
||
IE 5.5 does indeed submit forms when you hit enter if a radio or checkbox is
focused. Follow the steps in this bug (i.e. go to
http://bugzilla.mozilla.org/query.cgi...), or the hotmail URL, hitting enter
does indeed submit the form, at least on my installation.
Comment 15•23 years ago
|
||
this sounds pretty bad. is there a chance we could get this one fixed for M1.0?
Keywords: nsbeta1
Comment 16•23 years ago
|
||
using WindowsXP/IE 6.0 tabbing to a checkbox in a bugzilla query and hitting
enter submits the form. Mozilla build 2002012903 behaves exactly the same as IE
6.0 in this regard.
Comment 17•23 years ago
|
||
Using WinXP/IE 6.0 on http://www.hotmail.com hitting enter when focus is on
radio button submits the form. This is also the same behavior as Mozilla.
Resolving WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•