Cleanup examples (Fixes bug #22082)
authorGary Kacmarcik <garykac@google.com>
Sat, 17 Aug 2013 15:40:11 -0700
changeset 453 a7936b6a4d3f
parent 452 40213e201d37
child 454 d2190b3e5337
Cleanup examples (Fixes bug #22082)
html/DOM3-Events.html
--- a/html/DOM3-Events.html	Sat Aug 17 15:11:41 2013 -0700
+++ b/html/DOM3-Events.html	Sat Aug 17 15:40:11 2013 -0700
@@ -5709,8 +5709,8 @@
 				<p>To illustrate the concept of keyboard layout mappings and its relation with keyboard events and key values, on the same keyboard (a PC/AT US keyboard), pressing
 					the key labeled <code>Q</code> (with no modifier key activated) will produce different key values based on the mapping.  With a typical US <a class="def" href="#glossary-qwerty">
 					QWERTY</a> keyboard layout mapping, it will produce the character <code class="glyph">'q'</code> (<code class="char">'\u0071'</code>, Latin Small Letter Q).  If
-					the keyboard layout mapping is switched to a French mapping, pressing the same key will produce the character <code class="glyph">'a'</code> (<code class="char">'\u0041'</code>,
-					Latin Capital Letter A).  If the keyboard layout mapping is switched to a Serbian (Cyrillic) mapping, pressing the same key will produce the character <code class="glyph">
+					the keyboard layout mapping is switched to a French mapping, pressing the same key will produce the character <code class="glyph">'a'</code> (<code class="char">'\u0061'</code>,
+					Latin Small Letter A).  If the keyboard layout mapping is switched to a Serbian (Cyrillic) mapping, pressing the same key will produce the character <code class="glyph">
 					'&#x459;'</code> (<code class="char">'\u0459'</code>, Cyrillic Small Letter LJE).</p>
 
 				<p>However, the physical layout of the keys MAY be of interest to content authors developing games or other applications in which the location of the keys has an ergonomic
@@ -5960,13 +5960,27 @@
 						</tr>
 						<tr>
 							<td class="cell-right">3.</td>
+							<td><a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a></td>
+							<td class="cell-center"><code class="key">'Q'</code></td>
+							<td></td>
+							<td></td>
+						</tr>
+						<tr>
+							<td class="cell-right">4.</td>
+							<td><a class="eventtype" href="#event-type-input"><code>input</code></a></td>
+							<td class="cell-center"></td>
+							<td></td>
+							<td></td>
+						</tr>
+						<tr>
+							<td class="cell-right">5.</td>
 							<td><a class="eventtype" href="#event-type-keyup"><code>keyup</code></a></td>
 							<td class="cell-center"><code class="key">'Q'</code></td>
 							<td><code class="attribute-name">shiftKey</code></td>
-							<td>Latin Capital Letter Q</td>
+							<td></td>
 						</tr>
 						<tr>
-							<td class="cell-right">4.</td>
+							<td class="cell-right">6.</td>
 							<td><a class="eventtype" href="#event-type-keyup"><code>keyup</code></a></td>
 							<td class="cell-center"><code class="key">'Shift'</code></td>
 							<td></td>
@@ -5998,13 +6012,27 @@
 						</tr>
 						<tr>
 							<td class="cell-right">3.</td>
+							<td><a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a></td>
+							<td class="cell-center"><code class="key">'Q'</code></td>
+							<td></td>
+							<td></td>
+						</tr>
+						<tr>
+							<td class="cell-right">4.</td>
+							<td><a class="eventtype" href="#event-type-input"><code>input</code></a></td>
+							<td class="cell-center"></td>
+							<td></td>
+							<td></td>
+						</tr>
+						<tr>
+							<td class="cell-right">5.</td>
 							<td><a class="eventtype" href="#event-type-keyup"><code>keyup</code></a></td>
 							<td class="cell-center"><code class="key">'Shift'</code></td>
 							<td></td>
 							<td></td>
 						</tr>
 						<tr>
-							<td class="cell-right">4.</td>
+							<td class="cell-right">6.</td>
 							<td><a class="eventtype" href="#event-type-keyup"><code>keyup</code></a></td>
 							<td class="cell-center"><code class="key">'q'</code></td>
 							<td></td>
@@ -6669,7 +6697,7 @@
 					<a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a> or
 					<a class="eventtype" href="#event-type-input"><code>input</code></a> events.
 					The following example uses the keystrokes <code class="char">'\u0302'</code> (Combining Circumflex Accent key) and the key marked <code class="key">
-					'e'</code> (<code class="char">'\u0065'</code>, Latin Small Letter E key) (on a PC/AT french keyboard using a french mapping and without any modifier activated):</p>
+					'e'</code> (<code class="char">'\u0065'</code>, Latin Small Letter E key) (on a PC/AT French keyboard using a French mapping and without any modifier activated):</p>
 
 				<div class="example">
 					<div class="example-title">Example</div>
@@ -6700,7 +6728,7 @@
 						<tr>
 							<td class="cell-right">3.</td>
 							<td><a class="eventtype" href="#event-type-keydown"><code>keydown</code></a></td>
-							<td class="cell-center"><code class="key">'é'</code></td>
+							<td class="cell-center"><code class="key">'e'</code></td>
 							<td class="cell-center"></td>
 							<td></td>
 						</tr>
@@ -6708,7 +6736,7 @@
 							<td class="cell-right">4.</td>
 							<td><a class="eventtype" href="#event-type-beforeinput"><code>beforeinput</code></a></td>
 							<td class="cell-center"></td>
-							<td class="cell-center"><code class="key">'é'</code></td>
+							<td class="cell-center"><code class="key">'e'</code></td>
 							<td></td>
 						</tr>
 						<tr>
@@ -6721,7 +6749,7 @@
 						<tr>
 							<td class="cell-right">5.</td>
 							<td><a class="eventtype" href="#event-type-keyup"><code>keyup</code></a></td>
-							<td class="cell-center"><code class="key">'é'</code></td>
+							<td class="cell-center"><code class="key">'e'</code></td>
 							<td class="cell-center"></td>
 							<td></td>
 						</tr>