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)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED INVALID
mozilla1.0.1

People

(Reporter: madhur, Assigned: joki)

Details

Attachments

(1 file)

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
QA Contact: gerardok → madhur
Severity: normal → major
Keywords: mozilla0.9.2
Target Milestone: --- → mozilla1.0
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
QA Contact: madhur → rakeshmishra
nominating for nsbeta1
Keywords: nsbeta1
I got a crash when selecting a optgroup element in http://www.tantek.com/HTML4/OPTGROUP.html ( TB9205443W9 ). Is this related to Bug 63006?
QA Contact: rakeshmishra → trix
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
Component: Event Handling → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: