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 22082 - Review and cleanup examples in D3E spec
Summary: Review and cleanup examples in D3E spec
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:
 
Reported: 2013-05-18 02:16 UTC by Gary Kacmarcik
Modified: 2013-08-17 22:40 UTC (History)
2 users (show)

See Also:


Attachments

Description Gary Kacmarcik 2013-05-18 02:16:21 UTC
The following examples should be updated:

6.1.2 Keyboard Layout
=====================
"If the keyboard layout mapping is switched to a French mapping, pressing the same key will produce the character 'a' ('\u0041', Latin Capital Letter A)."
The Unicode code point and name are incorrect.
It should read: "... will produce the character 'a' ('\u0061', Latin Small Letter A)."


6.2.2 Modifier keys
===================
The difference between Examples 1 and 2 (which generate a character) and Example 3 (which does not) can be made more apparent by adding the keypress/textinput/beforeinput event to the first 2 examples.


6.2.5 Default actions and cancelable keyboard events
=====================
Third example seems wrong. The keypress should ignore the dead key since it was canceled. The text describes combining-circumflex + 'e', but the events use é instead of e. Also, the dead-key was cancelled so the key events should be simply 'e'.
This example should also be using composition events as described in 5.2.6


6.2.5 Default actions and cancelable keyboard events
=====================
In the second example, step 4, the keypress, should have shiftKey. Actually, we may want to remove the keypress and replace it with beforeinput.


3.3 Synchronous and asynchronous events
=======================================
In first Example, 'keydown' event is listed, but there is no corresponding 'keyup'. Also, DOMCharacterDataModified has been deprecated and should not be part of these examples.