This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 22071 - Remove 'char' from KeyboardEvent in DOM3
Summary: Remove 'char' from KeyboardEvent in DOM3
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Gary Kacmarcik
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 18867 21113
  Show dependency treegraph
 
Reported: 2013-05-17 16:00 UTC by Gary Kacmarcik
Modified: 2013-08-17 22:19 UTC (History)
4 users (show)

See Also:


Attachments

Description Gary Kacmarcik 2013-05-17 16:00:40 UTC
The 'char' attribute on the KeyboardEvent is only used by keypress, which
is deprecated. There is no point adding a new (non-deprecated) attribute
if the only use is by a deprecated method.

Note that textInput (which replaces keypress) does not use the 'char' attribute.
Comment 1 Anne 2013-05-17 16:02:46 UTC
Well we need to document what is implemented. If implementations are not removing 'char', it needs to be there.
Comment 2 Gary Kacmarcik 2013-05-17 16:54:25 UTC
There is only 1 incomplete implementation of 'char' in IE. AFAIK, no other browsers have shipped this.

Note that the spec does not attempt to define previous aborted D3E attributes like keyIdentifier (which shipped in WebKit browsers).

The current users of the deprecated keypress event use the legacy keyCode, charCode.

At best, this deserves a note in Appendix E.2.
Comment 3 Masayuki Nakano 2013-05-17 23:50:33 UTC
(In reply to comment #2)
> There is only 1 incomplete implementation of 'char' in IE. AFAIK, no other
> browsers have shipped this.

AFAIK, you're right.
Comment 4 Gary Kacmarcik 2013-08-17 22:19:33 UTC
This has been fixed in the latest ED.

A brief description of |char| has been added Appendix E.2.