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

Make input/textarea.selection{Direction,Start,End} not throw #1006

Merged
merged 1 commit into from
Apr 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -42140,9 +42140,9 @@ interface <dfn>HTMLFormElement</dfn> : <span>HTMLElement</span> {
[SameObject] readonly attribute <span>NodeList</span> <span data-x="dom-lfe-labels">labels</span>;

void <span data-x="dom-textarea/input-select">select</span>();
attribute unsigned long <span data-x="dom-textarea/input-selectionStart">selectionStart</span>;
attribute unsigned long <span data-x="dom-textarea/input-selectionEnd">selectionEnd</span>;
attribute DOMString <span data-x="dom-textarea/input-selectionDirection">selectionDirection</span>;
attribute unsigned long? <span data-x="dom-textarea/input-selectionStart">selectionStart</span>;
attribute unsigned long? <span data-x="dom-textarea/input-selectionEnd">selectionEnd</span>;
attribute DOMString? <span data-x="dom-textarea/input-selectionDirection">selectionDirection</span>;
void <span data-x="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement);
void <span data-x="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode = "preserve");
void <span data-x="dom-textarea/input-setSelectionRange">setSelectionRange</span>(unsigned long start, unsigned long end, optional DOMString direction);
Expand Down Expand Up @@ -49887,9 +49887,9 @@ interface <dfn>HTMLOptionElement</dfn> : <span>HTMLElement</span> {
[SameObject] readonly attribute <span>NodeList</span> <span data-x="dom-lfe-labels">labels</span>;

void <span data-x="dom-textarea/input-select">select</span>();
attribute unsigned long <span data-x="dom-textarea/input-selectionStart">selectionStart</span>;
attribute unsigned long <span data-x="dom-textarea/input-selectionEnd">selectionEnd</span>;
attribute DOMString <span data-x="dom-textarea/input-selectionDirection">selectionDirection</span>;
attribute unsigned long? <span data-x="dom-textarea/input-selectionStart">selectionStart</span>;
attribute unsigned long? <span data-x="dom-textarea/input-selectionEnd">selectionEnd</span>;
attribute DOMString? <span data-x="dom-textarea/input-selectionDirection">selectionDirection</span>;
void <span data-x="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement);
void <span data-x="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode = "preserve");
void <span data-x="dom-textarea/input-setSelectionRange">setSelectionRange</span>(unsigned long start, unsigned long end, optional DOMString direction);
Expand Down Expand Up @@ -54320,9 +54320,9 @@ dictionary <dfn>AutocompleteErrorEventInit</dfn> : <span>EventInit</span> {
DOM interfaces for handling their selection:</p>

<pre class="idl extract"> void <span data-x="dom-textarea/input-select">select</span>();
attribute unsigned long <span data-x="dom-textarea/input-selectionStart">selectionStart</span>;
attribute unsigned long <span data-x="dom-textarea/input-selectionEnd">selectionEnd</span>;
attribute DOMString <span data-x="dom-textarea/input-selectionDirection">selectionDirection</span>;
attribute unsigned long? <span data-x="dom-textarea/input-selectionStart">selectionStart</span>;
attribute unsigned long? <span data-x="dom-textarea/input-selectionEnd">selectionEnd</span>;
attribute DOMString? <span data-x="dom-textarea/input-selectionDirection">selectionDirection</span>;
void <span data-x="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement);
void <span data-x="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode = "preserve");
void <span data-x="dom-textarea/input-setSelectionRange">setSelectionRange</span>(unsigned long start, unsigned long end, optional DOMString direction = "preserve");</pre>
Expand Down Expand Up @@ -54433,9 +54433,10 @@ dictionary <dfn>AutocompleteErrorEventInit</dfn> : <span>EventInit</span> {
<div w-nodev>

<p>For <code>input</code> elements, calling these methods while they <span data-x="do not
apply">don't apply</span>, and getting or setting these attributes while they <span data-x="do not
apply">don't apply</span>, must throw an <code>InvalidStateError</code> exception. Otherwise, they
must act as described below.</p>
apply">don't apply</span>, and setting these attributes while they <span data-x="do not
apply">don't apply</span>, must throw an <code>InvalidStateError</code> exception; and getting
these attributes while they <span data-x="do not apply">don't apply</span> must return null.
Otherwise, they must act as described below.</p>

<p>For <code>input</code> elements, these methods and attributes must operate on the element's
<span data-x="concept-fe-value">value</span>. For <code>textarea</code> elements, these methods and
Expand Down