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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED WONTFIX

People

(Reporter: rakeshmishra, Assigned: joki)

Details

Attachments

(1 file)

The onKeyPress and onKeyUp not behaving as expected on the "anchor" element.
Tested on the windows 2000(build windows 2001-12-14-06 trunk)
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!".
changing qa contact
QA Contact: madhur → rakeshmishra
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
VERIFIED WONTFIX (or INVALID -- unfocussable elements can't receive key events)
Status: RESOLVED → VERIFIED
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: