Closed
Bug 83720
Opened 24 years ago
Closed 23 years ago
event handlers not working for HTML Element : OPTGROUP, OPTION
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
RESOLVED
INVALID
mozilla1.0.1
People
(Reporter: madhur, Assigned: joki)
Details
Attachments
(1 file)
|
2.96 KB,
text/html
|
Details |
1. open the attachements provided below.
2. click or key press through all the tests.
Actual Result:
You will notice that the following events are not being triggered :
ONKEYPRESS, ONKEYDOWN, ONKEYUP, ONFOCUS, ONBLUR, ONCHANGE
Expected result:
According to http://www.w3.org/TR/html401/interact/forms.html#edef-OPTGROUP ,
these events should be triggered
Reproducible: Always
Operating System: Win2000
| Reporter | ||
Comment 1•24 years ago
|
||
| Reporter | ||
Updated•24 years ago
|
QA Contact: gerardok → madhur
| Reporter | ||
Updated•24 years ago
|
Severity: normal → major
Keywords: mozilla0.9.2
| Assignee | ||
Updated•24 years ago
|
Target Milestone: --- → mozilla1.0
Comment 2•24 years ago
|
||
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1
(you can query for this string to delete spam or retrieve the list of bugs I've
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Updated•24 years ago
|
QA Contact: madhur → rakeshmishra
Comment 4•23 years ago
|
||
I got a crash when selecting a optgroup element in
http://www.tantek.com/HTML4/OPTGROUP.html ( TB9205443W9 ).
Is this related to Bug 63006?
Updated•23 years ago
|
QA Contact: rakeshmishra → trix
Comment 5•23 years ago
|
||
The fact that the handler can be defined on optgroup and option does not mean
that the event has to be fired at it. Optgroups and options do not really
receive focus (the select does). This is how select menus work. Therefore the
optgroup and option will not receive onfocus and onblur. Further, only elements
which receive focus get key events. Therefore they do not receive onkeypress,
onkeydown, and onkeyup.
Finally, firing focus, blur or change would seriously mess up <select> because
these events bubble. If you fired focus, blur or change on the <option>,
onchange, onfocus and onblur would fire on the <select> itself, which would
break the web. Breaking the web is bad, and the standards don't say we have to
fire these events.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Updated•7 years ago
|
Component: Event Handling → User events and focus handling
You need to log in
before you can comment on or make changes to this bug.
Description
•