Fix 24738 - Define if keypress is fired when before input is cancelled.
authorGary Kacmarcik <garykac@google.com>
Mon, 07 Apr 2014 16:16:12 -0700
changeset 573 2c2c081f3478
parent 572 7f4f43cc395b
child 574 29d9ed38ab98
Fix 24738 - Define if keypress is fired when before input is cancelled.
html/DOM3-Events.html
--- a/html/DOM3-Events.html	Mon Apr 07 15:34:13 2014 -0700
+++ b/html/DOM3-Events.html	Mon Apr 07 16:16:12 2014 -0700
@@ -8201,12 +8201,22 @@
 			<section id="keys-cancelable-keys">
 				<h3>Default actions and cancelable keyboard events</h3>
 
-				<p>Canceling the <a class="def" href="#glossary-default-action">default action</a> of a <a class="eventtype" href="#event-type-keydown"><code>keydown</code></a> event
-					MUST NOT affect its respective <a class="eventtype" href="#event-type-keyup"><code>keyup</code></a> event, but it MUST prevent the respective
-					<a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a> and
-					<a class="eventtype" href="#event-type-input"><code>input</code></a> events
-					from being generated. The following example describes a possible sequence of keys
-					to generate the Unicode character Q (Latin Capital Letter Q) on a PC/AT US keyboard using a US mapping:</p>
+				<p>Canceling the
+						<a class="def" href="#glossary-default-action">default action</a>
+					of a
+						<a class="eventtype" href="#event-type-keydown"><code>keydown</code></a>
+					event MUST NOT affect its respective
+						<a class="eventtype" href="#event-type-keyup"><code>keyup</code></a>
+					event, but it MUST prevent the respective
+						<a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a>
+					and
+						<a class="eventtype" href="#event-type-input"><code>input</code></a>
+					(and
+						<a class="eventtype" href="#event-type-keypress"><code>keypress</code></a>
+					if supported) events from being generated.
+					The following example describes a possible sequence of keys to generate the Unicode character
+					Q (Latin Capital Letter Q) on a PC/AT US keyboard using a US mapping:
+					</p>
 
 				<div class="example">
 					<div class="example-title"></div>
@@ -8240,8 +8250,13 @@
 						<tr>
 							<td class="cell-number"></td>
 							<td colspan="5">
-								<em>No <a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a> or
-								<a class="eventtype" href="#event-type-input"><code>input</code></a> events are generated</em>
+								<em>No
+									<a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a>
+								or
+									<a class="eventtype" href="#event-type-input"><code>input</code></a>
+								(or 
+									<a class="eventtype" href="#event-type-keypress"><code>keypress</code></a>,
+								if supported) events are generated</em>
 								</td>
 						</tr>
 						<tr>
@@ -10263,12 +10278,16 @@
 							The <a class="eventtype" href="#event-type-keypress"><code>keypress</code></a> event type
 							is device dependent and relies on the capabilities of the input devices and how they are
 							mapped in the operating system.
-							This event type MUST be generated after the <a class="def" href="#glossary-key-mapping">key mapping</a>.
+							</p>
+
+						<p>This event type MUST be generated after the <a class="def" href="#glossary-key-mapping">key mapping</a>.
 							It MUST NOT be fired when using an <a class="def" href="#glossary-ime">input method editor</a>.
-							If this event is canceled, it should prevent the
+							</p>
+
+						<p>If this event is canceled, it should prevent the
 								<a class="eventtype" href="#event-type-input"><code>input</code></a>
 							event from firing, in addition to canceling the
-							<a class="def" href="#glossary-default-action">default action</a>.
+								<a class="def" href="#glossary-default-action">default action</a>.
 							</p>
 
 						<p>Authors SHOULD use the