Skip to content

Commit

Permalink
insertCharacter -> insertText, fixes #119
Browse files Browse the repository at this point in the history
  • Loading branch information
johanneswilm committed Apr 8, 2016
1 parent f924a22 commit 864be8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions input-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h4>Interface InputEvent</h4>

<dd>
<p><code>inputType</code> holds the type of input. Allowed
values include insertCharacter, replaceText, replaceContent,
values include insertText, replaceText, replaceContent,
insertNewline, deleteContent, deleteComposedCharacter, undo,
redo. During initialization, the user agent is responsible
for populating this field as follows:
Expand All @@ -98,7 +98,7 @@ <h4>Interface InputEvent</h4>
<ol>
<li>If the user is inserting plain text using a
keyboard, IME, speech, or similar method, the inputType
MUST be <b>insertCharacter</b>.
MUST be <b>insertText</b>.

<ol>
<li>Set the value of data to be the plain text
Expand Down Expand Up @@ -270,13 +270,13 @@ <h4>Interface InputEvent</h4>
<tr>
<th>Cancelable</th>

<td>Varies: False for inputTypes insertCharacter and deleteComposedCharacter during IME composition. True otherwise</td>
<td>Varies: False for inputTypes insertText and deleteComposedCharacter during IME composition. True otherwise</td>
</tr>

<tr>
<th>Default action</th>

<td>Varies: 'Update the DOM' for contentEditable=typing editing hosts for inputTypes insertCharacter and deleteComposedCharacter. 'Update the DOM element' for contentEditable=true editing hosts for all inputTypes. None otherwise.</td>
<td>Varies: 'Update the DOM' for contentEditable=typing editing hosts for inputTypes insertText and deleteComposedCharacter. 'Update the DOM element' for contentEditable=true editing hosts for all inputTypes. None otherwise.</td>
</tr>

<tr>
Expand Down

0 comments on commit 864be8d

Please sign in to comment.