Open Bug 129432 Opened 19 years ago Updated 11 months ago

'onkeypress', 'onkeydown', onkeyup' not working on FORM,LEGEND,OPTGROUP,OPTION

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

Tracking Status
firefox58 --- affected
firefox59 --- ?

People

(Reporter: christinehoff4, Unassigned)

Details

(Whiteboard: [webcompat])

Attachments

(1 file)

Testing using 03_06_06_trunk build. 
Open the attached testcase.

'onkeypress', 'onkeydown', onkeyup' not working on the following FORM elements:
FORM
LEGEND
OPTGROUP
OPTION
These attributes are working on other FORM elements except for LABEL which has
already been written up in bug
http://bugzilla.mozilla.org/show_bug.cgi?id=83733. There is another general bug
for 'onkeypress'- http://bugzilla.mozilla.org/show_bug.cgi?id=87555. 
QA Contact: madhur → rakeshmishra
QA Contact: rakeshmishra → trix
.
Assignee: joki → saari
QA Contact: trix → ian
Assignee: saari → nobody
QA Contact: ian → events
Let's shake a bit this tree.

HTML5 says that it must be supported
https://html.spec.whatwg.org/multipage/webappapis.html#handler-onkeypress
https://www.w3.org/TR/html5/webappapis.html#handler-onkeypress

This is creating a Webcompat issue
https://webcompat.com/issues/12260
Flags: webcompat?
Whiteboard: [webcompat]
The markup is 

```html
<input name="AcademicTime" value="0" 
       class="txt_Num" 
       onkeypress="if(isNaN(String.fromCharCode(event.keyCode))) return false" 
       type="text">
```
Perhaps if we find more sites breaking due to this we can bump the priority.
Flags: webcompat?
Component: Event Handling → User events and focus handling

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

Webcompat Priority: ? → ---
You need to log in before you can comment on or make changes to this bug.