- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 19 Feb 2009 03:16:48 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv4865 Modified Files: Overview.html Log Message: Merge the text selection APIs into the relevant IDL blocks. (whatwg r2837) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2007 retrieving revision 1.2008 diff -u -d -r1.2007 -r1.2008 --- Overview.html 19 Feb 2009 02:43:14 -0000 1.2007 +++ Overview.html 19 Feb 2009 03:16:45 -0000 1.2008 @@ -20214,9 +20214,14 @@ void <a href=#dom-cva-setcustomvalidity title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error); readonly attribute <span>NodeList</span> <a href=#dom-lfe-labels title=dom-lfe-labels>labels</a>; + + void <a href=#dom-textarea-input-select title=dom-textarea/input-select>select</a>(); + attribute unsigned long <a href=#dom-textarea-input-selectionstart title=dom-textarea/input-selectionStart>selectionStart</a>; + attribute unsigned long <a href=#dom-textarea-input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>; + void <a href=#dom-textarea-input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(in unsigned long start, in unsigned long end); };</pre> </dd> - </dl><!-- XXX add selectionStart and company --><p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a typed data field, + </dl><p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a typed data field, usually with a form control to allow the user to edit the data.<p>The <dfn id=attr-input-type title=attr-input-type><code>type</code></dfn> attribute controls the data type (and associated control) of the element. It is an <a href=#enumerated-attribute>enumerated attribute</a>. The following @@ -20896,7 +20901,7 @@ <td class=no> · <!-- Reset Button --> <!-- <td class="no"> · Button --> - <tr><th> <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code> + <tbody><tr><th> <code title=dom-input-checked><a href=#dom-input-checked>checked</a></code> <td class=no> · <!-- Hidden --> <td class=no> · <!-- Text --> <!-- <td class="no"> · Search --> @@ -21040,6 +21045,102 @@ <td class=no> · <!-- Reset Button --> <!-- <td class="no"> · Button --> + <tr><th> <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> + <td class=no> · <!-- Hidden --> + <td class=yes> Yes <!-- Text --> +<!-- <td class="yes"> Yes Search --> +<!-- <td class="yes"> Yes URL --> + <td class=yes> Yes <!-- E-mail --> + <td class=yes> Yes <!-- Password --> + <td class=no> · <!-- Date and Time --> +<!-- <td class="no"> · Date --> +<!-- <td class="no"> · Month --> +<!-- <td class="no"> · Week --> +<!-- <td class="no"> · Time --> + <td class=no> · <!-- Local Date and Time --> +<!-- <td class="no"> · Number --> + <td class=no> · <!-- Range --> + <td class=no> · <!-- Color --> + <td class=no> · <!-- Checkbox --> +<!-- <td class="no"> · Radio Button --> + <td class=no> · <!-- File Upload --> + <td class=no> · <!-- Submit Button --> + <td class=no> · <!-- Image Button --> + <td class=no> · <!-- Reset Button --> +<!-- <td class="no"> · Button --> + + <tr><th> <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code> + <td class=no> · <!-- Hidden --> + <td class=yes> Yes <!-- Text --> +<!-- <td class="yes"> Yes Search --> +<!-- <td class="yes"> Yes URL --> + <td class=yes> Yes <!-- E-mail --> + <td class=yes> Yes <!-- Password --> + <td class=no> · <!-- Date and Time --> +<!-- <td class="no"> · Date --> +<!-- <td class="no"> · Month --> +<!-- <td class="no"> · Week --> +<!-- <td class="no"> · Time --> + <td class=no> · <!-- Local Date and Time --> +<!-- <td class="no"> · Number --> + <td class=no> · <!-- Range --> + <td class=no> · <!-- Color --> + <td class=no> · <!-- Checkbox --> +<!-- <td class="no"> · Radio Button --> + <td class=no> · <!-- File Upload --> + <td class=no> · <!-- Submit Button --> + <td class=no> · <!-- Image Button --> + <td class=no> · <!-- Reset Button --> +<!-- <td class="no"> · Button --> + + <tr><th> <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code> + <td class=no> · <!-- Hidden --> + <td class=yes> Yes <!-- Text --> +<!-- <td class="yes"> Yes Search --> +<!-- <td class="yes"> Yes URL --> + <td class=yes> Yes <!-- E-mail --> + <td class=yes> Yes <!-- Password --> + <td class=no> · <!-- Date and Time --> +<!-- <td class="no"> · Date --> +<!-- <td class="no"> · Month --> +<!-- <td class="no"> · Week --> +<!-- <td class="no"> · Time --> + <td class=no> · <!-- Local Date and Time --> +<!-- <td class="no"> · Number --> + <td class=no> · <!-- Range --> + <td class=no> · <!-- Color --> + <td class=no> · <!-- Checkbox --> +<!-- <td class="no"> · Radio Button --> + <td class=no> · <!-- File Upload --> + <td class=no> · <!-- Submit Button --> + <td class=no> · <!-- Image Button --> + <td class=no> · <!-- Reset Button --> +<!-- <td class="no"> · Button --> + + <tr><th> <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> + <td class=no> · <!-- Hidden --> + <td class=yes> Yes <!-- Text --> +<!-- <td class="yes"> Yes Search --> +<!-- <td class="yes"> Yes URL --> + <td class=yes> Yes <!-- E-mail --> + <td class=yes> Yes <!-- Password --> + <td class=no> · <!-- Date and Time --> +<!-- <td class="no"> · Date --> +<!-- <td class="no"> · Month --> +<!-- <td class="no"> · Week --> +<!-- <td class="no"> · Time --> + <td class=no> · <!-- Local Date and Time --> +<!-- <td class="no"> · Number --> + <td class=no> · <!-- Range --> + <td class=no> · <!-- Color --> + <td class=no> · <!-- Checkbox --> +<!-- <td class="no"> · Radio Button --> + <td class=no> · <!-- File Upload --> + <td class=no> · <!-- Submit Button --> + <td class=no> · <!-- Image Button --> + <td class=no> · <!-- Reset Button --> +<!-- <td class="no"> · Button --> + <tr><th> <code title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> <td class=no> · <!-- Hidden --> <td class=no> · <!-- Text --> @@ -21222,7 +21323,10 @@ attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code> methods, are part of the <a href=#the-constraint-validation-api>constraint validation API</a>. The <code title=dom-lfe-labels><a href=#dom-lfe-labels>labels</a></code> attribute provides a list - of the element's <code><a href=#the-label-element>label</a></code>s.<h5 id=states-of-the-type-attribute><span class=secno>4.10.4.1 </span>States of the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute</h5><!-- XXX for things that say "express it as a valid foo", make sure + of the element's <code><a href=#the-label-element>label</a></code>s. The <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + and <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> + methods and attributes expose the element's text selection.<h5 id=states-of-the-type-attribute><span class=secno>4.10.4.1 </span>States of the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute</h5><!-- XXX for things that say "express it as a valid foo", make sure that valid foo is unambiguous, and if not, define a canonical serialisation. e.g. should it be 2008-01-01T00:00 or 2008-01-01t00:00? should it be 1e2 or 100? --><h6 id=hidden-state><span class=secno>4.10.4.1.1 </span><dfn title=attr-input-type-hidden>Hidden</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#hidden-state title=attr-input-type-hidden>Hidden</a> state, the rules in @@ -21272,9 +21376,13 @@ <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code class=no-backref title=event-input-input><a href=#event-input-input>input</a></code> and <code class=no-backref title=event-input-change><a href=#event-input-change>change</a></code> events do not apply.</p> @@ -21291,7 +21399,7 @@ follows:</strong> <a href=#strip-line-breaks>Strip line breaks</a> from the <a href=#concept-fe-value title=concept-fe-value>value</a>.<div class=bookkeeping> <p>The following common <code><a href=#the-input-element>input</a></code> element content - attributes and DOM attributes apply to the element: + attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>, <code title=attr-input-list><a href=#attr-input-list>list</a></code>, <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>, @@ -21301,8 +21409,12 @@ <code title=attr-input-required><a href=#attr-input-required>required</a></code>, and <code title=attr-input-size><a href=#attr-input-size>size</a></code> content attributes; <code title=dom-input-list><a href=#dom-input-list>list</a></code>, - <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, and - <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes. + <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, + <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes; + <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.</p> @@ -21355,7 +21467,7 @@ element is <a href=#suffering-from-a-type-mismatch>suffering from a type mismatch</a>.<div class=bookkeeping> <p>The following common <code><a href=#the-input-element>input</a></code> element content - attributes and DOM attributes apply to the element: + attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>, <code title=attr-input-list><a href=#attr-input-list>list</a></code>, <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>, @@ -21365,8 +21477,12 @@ <code title=attr-input-required><a href=#attr-input-required>required</a></code>, and <code title=attr-input-size><a href=#attr-input-size>size</a></code> content attributes; <code title=dom-input-list><a href=#dom-input-list>list</a></code>, - <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, and - <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes. + <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, + <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes; + <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.</p> @@ -21437,7 +21553,7 @@ 3.2.4, excluding the <code>CFWS</code> production everywhere. <a href=#references>[RFC2822]</a><div class=bookkeeping> <p>The following common <code><a href=#the-input-element>input</a></code> element content - attributes and DOM attributes apply to the element: + attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>, <code title=attr-input-list><a href=#attr-input-list>list</a></code>, <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>, @@ -21448,8 +21564,12 @@ <code title=attr-input-required><a href=#attr-input-required>required</a></code>, and <code title=attr-input-size><a href=#attr-input-size>size</a></code> content attributes; <code title=dom-input-list><a href=#dom-input-list>list</a></code>, - <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, and - <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes. + <code title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, + <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes; + <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> <p>The <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attribute is in mode <a href=#dom-input-value-value title=dom-input-value-value>value</a>.</p> @@ -21493,7 +21613,7 @@ follows:</strong> <a href=#strip-line-breaks>Strip line breaks</a> from the <a href=#concept-fe-value title=concept-fe-value>value</a>.<div class=bookkeeping> <p>The following common <code><a href=#the-input-element>input</a></code> element content - attributes and DOM attributes apply to the element: + attributes, DOM attributes, and methods apply to the element: <code title=attr-input-autocomplete><a href=#attr-input-autocomplete>autocomplete</a></code>, <code title=attr-input-maxlength><a href=#attr-input-maxlength>maxlength</a></code>, <code title=attr-input-pattern><a href=#attr-input-pattern>pattern</a></code>, @@ -21501,7 +21621,11 @@ <code title=attr-input-readonly><a href=#attr-input-readonly>readonly</a></code>, <code title=attr-input-required><a href=#attr-input-required>required</a></code>, and <code title=attr-input-size><a href=#attr-input-size>size</a></code> content attributes; - <code title=attr-input-value><a href=#attr-input-value>value</a></code> DOM attribute.</p> + <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code title=dom-input-value><a href=#dom-input-value>value</a></code> DOM attributes; + <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, and + <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> <p>The <code title=event-input-input><a href=#event-input-input>input</a></code> and <code title=event-input-change><a href=#event-input-change>change</a></code> events apply.</p> @@ -21635,9 +21759,13 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> - DOM attribute does not apply to the element.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, and + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=date-state><span class=secno>4.10.4.1.7 </span><dfn title=attr-input-type-date>Date</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#date-state title=attr-input-type-date>Date</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -21733,9 +21861,13 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> - DOM attribute does not apply to the element.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, and + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=month-state><span class=secno>4.10.4.1.8 </span><dfn title=attr-input-type-month>Month</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#month-state title=attr-input-type-month>Month</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -21829,9 +21961,13 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> - DOM attribute does not apply to the element.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, and + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=week-state><span class=secno>4.10.4.1.9 </span><dfn title=attr-input-type-week>Week</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#week-state title=attr-input-type-week>Week</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -21927,9 +22063,13 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> - DOM attribute does not apply to the element.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, and + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=time-state><span class=secno>4.10.4.1.10 </span><dfn title=attr-input-type-time>Time</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#time-state title=attr-input-type-time>Time</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -22019,9 +22159,13 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> - DOM attribute does not apply to the element.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, and + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=local-date-and-time-state><span class=secno>4.10.4.1.11 </span><dfn title=attr-input-type-datetime-local>Local Date and Time</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#local-date-and-time-state title=attr-input-type-datetime-local>Local Date and Time</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -22107,9 +22251,14 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes do not apply to the element: - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=number-state><span class=secno>4.10.4.1.12 </span><dfn title=attr-input-type-number>Number</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#number-state title=attr-input-type-number>Number</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -22189,9 +22338,14 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes do not apply to the element: - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=range-state><span class=secno>4.10.4.1.13 </span><dfn title=attr-input-type-range>Range</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#range-state title=attr-input-type-range>Range</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a control for setting @@ -22292,9 +22446,14 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes do not apply to the element: - <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code> and - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>.</p> + <p>The following DOM attributes and methods do not apply to the + element: + <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, and + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> DOM attributes; + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code> and + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> methods.</p> </div><h6 id=color-state><span class=secno>4.10.4.1.14 </span><dfn title=attr-input-type-color>Color</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#color-state title=attr-input-type-color>Color</a> state, the rules in this section apply.<p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a color well control, @@ -22358,9 +22517,13 @@ <p>The following DOM attributes and methods do not apply to the element: <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> </div><h6 id=checkbox-state><span class=secno>4.10.4.1.15 </span><dfn title=attr-input-type-checkbox>Checkbox</dfn> state</h6><p>When an <code><a href=#the-input-element>input</a></code> element's <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the <a href=#checkbox-state title=attr-input-type-checkbox>Checkbox</a> state, the rules in @@ -22424,12 +22587,17 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code title=event-input-input><a href=#event-input-input>input</a></code> event does not @@ -22523,12 +22691,17 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code title=event-input-input><a href=#event-input-input>input</a></code> event does not @@ -22610,13 +22783,18 @@ <p>The element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute must be omitted.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code title=event-input-input><a href=#event-input-input>input</a></code> event does not @@ -22669,13 +22847,18 @@ <code class=no-backref title=attr-input-step><a href=#attr-input-step>step</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code class=no-backref title=event-input-input><a href=#event-input-input>input</a></code> and <code class=no-backref title=event-input-change><a href=#event-input-change>change</a></code> events do not apply.</p> @@ -22809,13 +22992,18 @@ <p>The element's <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute must be omitted.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code class=no-backref title=event-input-input><a href=#event-input-input>input</a></code> and <code class=no-backref title=event-input-change><a href=#event-input-change>change</a></code> events do not apply.</p> @@ -22861,13 +23049,18 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code class=no-backref title=event-input-input><a href=#event-input-input>input</a></code> and <code class=no-backref title=event-input-change><a href=#event-input-change>change</a></code> events do not apply.</p> @@ -22908,13 +23101,18 @@ <code class=no-backref title=attr-fs-target><a href=#attr-fs-target>target</a></code>, and <code class=no-backref title=attr-dim-width><a href=#attr-dim-width>width</a></code>.</p> - <p>The following DOM attributes and methods do not apply to the element: + <p>The following DOM attributes and methods do not apply to the + element: <code class=no-backref title=dom-input-checked><a href=#dom-input-checked>checked</a></code>, <code class=no-backref title=dom-input-list><a href=#dom-input-list>list</a></code>, <code class=no-backref title=dom-input-selectedOption><a href=#dom-input-selectedoption>selectedOption</a></code>, - <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code> and + <code class=no-backref title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code class=no-backref title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + <code class=no-backref title=dom-input-valueAsDate><a href=#dom-input-valueasdate>valueAsDate</a></code>, and <code class=no-backref title=dom-input-valueAsNumber><a href=#dom-input-valueasnumber>valueAsNumber</a></code> DOM attributes; - <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code> and + <code class=no-backref title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, + <code class=no-backref title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code>, + <code class=no-backref title=dom-input-stepDown><a href=#dom-input-stepdown>stepDown()</a></code>, and <code class=no-backref title=dom-input-stepUp><a href=#dom-input-stepup>stepUp()</a></code> methods.</p> <p>The <code class=no-backref title=event-input-input><a href=#event-input-input>input</a></code> and <code class=no-backref title=event-input-change><a href=#event-input-change>change</a></code> events do not apply.</p> @@ -23867,9 +24065,14 @@ void <a href=#dom-cva-setcustomvalidity title=dom-cva-setCustomValidity>setCustomValidity</a>(in DOMString error); readonly attribute <span>NodeList</span> <a href=#dom-lfe-labels title=dom-lfe-labels>labels</a>; + + void <a href=#dom-textarea-input-select title=dom-textarea/input-select>select</a>(); + attribute unsigned long <a href=#dom-textarea-input-selectionstart title=dom-textarea/input-selectionStart>selectionStart</a>; + attribute unsigned long <a href=#dom-textarea-input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>; + void <a href=#dom-textarea-input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(in unsigned long start, in unsigned long end); };</pre> </dd> - </dl><!-- XXX add selectionStart and company --><p>The <code><a href=#the-textarea-element>textarea</a></code> element <a href=#represents>represents</a> a multiline plain + </dl><p>The <code><a href=#the-textarea-element>textarea</a></code> element <a href=#represents>represents</a> a multiline plain text edit control for the element's <dfn id=concept-textarea-raw-value title=concept-textarea-raw-value>raw value</dfn>. The contents of the control represent the control's default value.<p>The <a href=#concept-textarea-raw-value title=concept-textarea-raw-value>raw value</a> of a <code><a href=#the-textarea-element>textarea</a></code> control must be initially the empty @@ -23977,7 +24180,10 @@ attributes, and the <code title=dom-cva-checkValidatity><a href=#dom-cva-checkvalidatity>checkValidity()</a></code> and <code title=dom-cva-setCustomValidity><a href=#dom-cva-setcustomvalidity>setCustomValidity()</a></code> methods, are part of the <a href=#the-constraint-validation-api>constraint validation API</a>. The <code title=dom-lfe-labels><a href=#dom-lfe-labels>labels</a></code> attribute provides a list - of the element's <code><a href=#the-label-element>label</a></code>s.<h4 id=the-output-element><span class=secno>4.10.11 </span>The <dfn><code>output</code></dfn> element</h4><dl class=element><dt>Categories</dt> + of the element's <code><a href=#the-label-element>label</a></code>s. The <code title=dom-textarea/input-select><a href=#dom-textarea-input-select>select()</a></code>, <code title=dom-textarea/input-selectionStart><a href=#dom-textarea-input-selectionstart>selectionStart</a></code>, + <code title=dom-textarea/input-selectionEnd><a href=#dom-textarea-input-selectionend>selectionEnd</a></code>, + and <code title=dom-textarea/input-setSelectionRange><a href=#dom-textarea-input-setselectionrange>setSelectionRange()</a></code> + methods and attributes expose the element's text selection.<h4 id=the-output-element><span class=secno>4.10.11 </span>The <dfn><code>output</code></dfn> element</h4><dl class=element><dt>Categories</dt> <dd><a href=#flow-content-0>Flow content</a>.</dd> <dd><a href=#phrasing-content-0>Phrasing content</a>.</dd> <dd><a href=#category-listed title=category-listed>Listed</a> and <a href=#category-reset title=category-reset>resettable</a> <a href=#form-associated-element>form-associated element</a>.</dd> @@ -35093,16 +35299,17 @@ <p>If a script invoked <code title="">window.getSelection().toString()</code>, the return value would be "<code>the Oxford English</code>".</p> </div><p class=note>The <code><a href=#selection-0>Selection</a></code> interface has no relation - to the <code><a href=#datagridselection>DataGridSelection</a></code> interface.<h4 id=textFieldSelection><span class=secno>6.6.2 </span>APIs for the text field selections</h4><p class=XXX>When we define HTMLTextAreaElement and - HTMLInputElement we will have to add the IDL given below to both of - their IDLs.</p><!-- v2 idea: DOM Range APIs to expose the textarea/input edited + to the <code><a href=#datagridselection>DataGridSelection</a></code> interface.<h4 id=textFieldSelection><span class=secno>6.6.2 </span>APIs for the text field selections</h4><!-- v2 idea: DOM Range APIs to expose the textarea/input edited value (ack martijnw) --><p>The <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code> elements define four members in their DOM interfaces for handling their text selection:<pre class=idl> void <a href=#dom-textarea-input-select title=dom-textarea/input-select>select</a>(); attribute unsigned long <a href=#dom-textarea-input-selectionstart title=dom-textarea/input-selectionStart>selectionStart</a>; attribute unsigned long <a href=#dom-textarea-input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>; void <a href=#dom-textarea-input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(in unsigned long start, in unsigned long end);</pre><!-- XXX also add textLength? it seems to be widely used --><p>These methods and attributes expose and control the selection of - <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code> text fields.<p>The <dfn id=dom-textarea-input-select title=dom-textarea/input-select><code>select()</code></dfn> method + <code><a href=#the-input-element>input</a></code> and <code><a href=#the-textarea-element>textarea</a></code> text fields.<p>When these methods and attributes are used with + <code><a href=#the-input-element>input</a></code> elements while they don't apply, they must raise + an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> exception. Otherwise, they must + act as described below.<p>The <dfn id=dom-textarea-input-select title=dom-textarea/input-select><code>select()</code></dfn> method must cause the contents of the text field to be fully selected.<p>The <dfn id=dom-textarea-input-selectionstart title=dom-textarea/input-selectionStart><code>selectionStart</code></dfn> attribute must, on getting, return the offset (in logical order) to the character that immediately follows the start of the @@ -35145,10 +35352,7 @@ </div><p>Characters with no visible rendering, such as U+200D ZERO WIDTH JOINER, still count as characters. Thus, for instance, the selection can include just an invisible character, and the text insertion - cursor can be placed to one side or another of such a character.<p>When these methods and attributes are used with - <code><a href=#the-input-element>input</a></code> elements that are not displaying simple text - fields, they must raise an <code><a href=#invalid_state_err>INVALID_STATE_ERR</a></code> - exception.<h3 id=contenteditable><span class=secno>6.7 </span>The <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute</h3><p>The <dfn id=attr-contenteditable title=attr-contenteditable><code>contenteditable</code></dfn> + cursor can be placed to one side or another of such a character.<h3 id=contenteditable><span class=secno>6.7 </span>The <code title=attr-contenteditable><a href=#attr-contenteditable>contenteditable</a></code> attribute</h3><p>The <dfn id=attr-contenteditable title=attr-contenteditable><code>contenteditable</code></dfn> attribute is an <a href=#enumerated-attribute>enumerated attribute</a> whose keywords are the empty string, <code title="">true</code>, and <code title="">false</code>. The empty string and the <code title="">true</code> keyword map to the <i>true</i> state. The <code title="">false</code> keyword maps to the <i>false</i> state. In addition, there is a third state, the <i>inherit</i> state, which is
Received on Thursday, 19 February 2009 03:16:58 UTC