Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace 'insertCharacter' with 'insertText' #120

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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