[Webkit-unassigned] [Bug 10614] DIV element does not support 'keypress' event attribute, contrary to w3c specification.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 27 23:53:43 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=10614


Christopher M. Balz <christopherbalz at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |VERIFIED
         Resolution|INVALID                     |REMIND




--- Comment #4 from Christopher M. Balz <christopherbalz at yahoo.com>  2009-10-27 23:53:42 PDT ---
I marked this 'remind' because there is nothing in the w3c spec that indicates
that 'tabIndex' must be set in order for a 'div' element to support
'onkeypress', and because several major browsers implement the functionality
correctly (detail below).  

The w3c spec states clearly ( in the w3c HTML 4.01 Specification, at
http://www.w3.org/TR/REC-html40/struct/global.html#h-7.5.4 ), that a 'div'
should support 'keypress', and lists no restriction on that, about 'tabIndex'
or any other.

The behavior of other browsers may be checked with the test case here (
https://bug-10614-attachments.webkit.org/attachment.cgi?id=10290 ) - Internet
Explorer 6, Konqueror 4.2.4 (with WebKit Part), and Opera 8.27 report keypress
events properly for the divs, as well as likely later versions.  Firefox 3.0.4
does not.  However, it passes an additional test case, directly below. 

Here is an additional test case, which all browsers but Safari/Chrome/WebKit
pass: At
https://www.etrade.com/javascript/et1/dev_tools/test/harness/modal_dialog/index.html
, once a modal dialog is shown by clicking on the button, the 'esc' key should
dismiss the dialog. 

I have seen this bug cropping up in bugs filed by Meebo and other services.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list