Open Bug 129432 Opened 19 years ago Updated 11 months ago
'onkeypress', 'onkeydown', onkeyup' not working on FORM,LEGEND,OPTGROUP,OPTION
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.
Assignee: joki → saari
QA Contact: trix → ian
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
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.
Component: Event Handling → User events and focus handling
Webcompat Priority: --- → ?
Webcompat Priority: ? → ---
See Also: https://webcompat.com/issues/12260 →
You need to log in before you can comment on or make changes to this bug.