Closed
Bug 115367
Opened 23 years ago
Closed 23 years ago
onkeypress and onKeyup on anchor element
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: rakeshmishra, Assigned: joki)
Details
Attachments
(1 file)
677 bytes,
text/html
|
Details |
The onKeyPress and onKeyUp not behaving as expected on the "anchor" element. Tested on the windows 2000(build windows 2001-12-14-06 trunk)
Reporter | ||
Comment 1•23 years ago
|
||
steps to reproduce: 1.open the attachment 2 [details] [diff] [review].put focus on the text "onkeypress" and hit any key 3.an alert box should open up saying "Key was pressed !" 4.do the same for the text "onkeyup" 5.click on the text "onClick", an alert box opens up saying "Mouse Clicked!".
Assignee | ||
Comment 3•23 years ago
|
||
Typically anchor's without href's are not focusable items (and therefore cannot receive key events). I cannot find a specific definition of this in the W3C spec but it is the behavior followed by Netscape 4.x, Mozilla, and IE. If hrefs are added to the anchor they will behave properly.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Comment 4•22 years ago
|
||
VERIFIED WONTFIX (or INVALID -- unfocussable elements can't receive key events)
Status: RESOLVED → VERIFIED
Updated•5 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
•