[html5] r2837 - [e] (0) Merge the text selection APIs into the relevant IDL blocks.

whatwg at whatwg.org whatwg at whatwg.org
Wed Feb 18 19:16:41 PST 2009


Author: ianh
Date: 2009-02-18 19:16:40 -0800 (Wed, 18 Feb 2009)
New Revision: 2837

Modified:
   index
   source
Log:
[e] (0) Merge the text selection APIs into the relevant IDL blocks.

Modified: index
===================================================================
--- index	2009-02-19 02:43:08 UTC (rev 2836)
+++ index	2009-02-19 03:16:40 UTC (rev 2837)
@@ -24770,9 +24770,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>
 
   <p>The <dfn id=attr-input-type title=attr-input-type><code>type</code></dfn>
@@ -25460,7 +25465,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 -->
@@ -25604,6 +25609,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 -->
@@ -25816,7 +25917,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.</p>
+  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.</p>
 
 
 
@@ -25887,9 +25991,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>
@@ -25921,7 +26029,7 @@
   <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>,
@@ -25931,8 +26039,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>
@@ -26002,7 +26114,7 @@
   <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>,
@@ -26012,8 +26124,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>
@@ -26105,7 +26221,7 @@
   <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>,
@@ -26116,8 +26232,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>
@@ -26176,7 +26296,7 @@
   <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>,
@@ -26184,7 +26304,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>
 
@@ -26347,9 +26471,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>
 
@@ -26474,9 +26602,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>
 
@@ -26601,9 +26733,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>
 
@@ -26728,9 +26864,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>
 
@@ -26849,9 +26989,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>
 
@@ -26962,9 +27106,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>
 
@@ -27069,9 +27218,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>
 
@@ -27205,9 +27359,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>
 
@@ -27288,9 +27447,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>
@@ -27369,12 +27532,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
@@ -27489,12 +27657,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
@@ -27600,13 +27773,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
@@ -27675,13 +27853,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>
@@ -27850,13 +28033,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>
@@ -27922,13 +28110,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>
@@ -27984,13 +28177,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>
@@ -29295,9 +29493,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>
 
@@ -29456,7 +29659,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.</p>
+  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.</p>
 
 
 
@@ -43117,10 +43323,6 @@
 
   <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
   value (ack martijnw) -->
 
@@ -43132,11 +43334,16 @@
            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 -->
+  <!-- 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>
 
+  <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>
+
   <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>
 
@@ -43196,14 +43403,9 @@
   can include just an invisible character, and the text insertion
   cursor can be placed to one side or another of such a character.</p>
 
-  <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.</p>
 
 
 
-
   <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>

Modified: source
===================================================================
--- source	2009-02-19 02:43:08 UTC (rev 2836)
+++ source	2009-02-19 03:16:40 UTC (rev 2837)
@@ -27510,12 +27510,15 @@
   void <span title="dom-cva-setCustomValidity">setCustomValidity</span>(in DOMString error);
 
   readonly attribute <span>NodeList</span> <span title="dom-lfe-labels">labels</span>;
+
+  void <span title="dom-textarea/input-select">select</span>();
+           attribute unsigned long <span title="dom-textarea/input-selectionStart">selectionStart</span>;
+           attribute unsigned long <span title="dom-textarea/input-selectionEnd">selectionEnd</span>;
+  void <span title="dom-textarea/input-setSelectionRange">setSelectionRange</span>(in unsigned long start, in unsigned long end);
 };</pre>
    </dd> 
   </dl>
 
-  <!-- XXX add selectionStart and company -->
-
   <p>The <code>input</code> element <span>represents</span> a typed data field,
   usually with a form control to allow the user to edit the data.</p>
 
@@ -28287,6 +28290,8 @@
      <td class="no"> · <!-- Reset Button -->
 <!-- <td class="no"> ·      Button -->
 
+   <tbody>
+
     <tr>
      <th> <code title="dom-input-checked">checked</code>
      <td class="no"> · <!-- Hidden -->
@@ -28438,6 +28443,106 @@
 <!-- <td class="no"> ·      Button -->
 
     <tr>
+     <th> <code title="dom-textarea/input-select">select()</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">selectionStart</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">selectionEnd</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">setSelectionRange()</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">stepDown()</code>
      <td class="no"> · <!-- Hidden -->
      <td class="no"> · <!-- Text -->
@@ -28717,7 +28822,13 @@
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>. The
   <code title="dom-lfe-labels">labels</code> attribute provides a list
-  of the element's <code>label</code>s.</p>
+  of the element's <code>label</code>s. The <code
+  title="dom-textarea/input-select">select()</code>, <code
+  title="dom-textarea/input-selectionStart">selectionStart</code>,
+  <code title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+  and <code
+  title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>
+  methods and attributes expose the element's text selection.</p>
 
 
 
@@ -28790,9 +28901,13 @@
    <code class="no-backref" title="dom-input-checked">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
    <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code class="no-backref"
@@ -28831,7 +28946,7 @@
   <div class="bookkeeping">
 
    <p>The following common <code>input</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">autocomplete</code>,
    <code title="attr-input-list">list</code>,
    <code title="attr-input-maxlength">maxlength</code>,
@@ -28841,8 +28956,12 @@
    <code title="attr-input-required">required</code>, and
    <code title="attr-input-size">size</code> content attributes;
    <code title="dom-input-list">list</code>,
-   <code title="dom-input-selectedOption">selectedOption</code>, and
-   <code title="dom-input-value">value</code> DOM attributes.
+   <code title="dom-input-selectedOption">selectedOption</code>,
+   <code title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code title="dom-input-value">value</code> DOM attributes; 
+   <code title="dom-textarea/input-select">select()</code> and
+   <code title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
    <p>The <code title="dom-input-value">value</code> DOM attribute is
    in mode <span title="dom-input-value-value">value</span>.</p>
@@ -28922,7 +29041,7 @@
   <div class="bookkeeping">
 
    <p>The following common <code>input</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">autocomplete</code>,
    <code title="attr-input-list">list</code>,
    <code title="attr-input-maxlength">maxlength</code>,
@@ -28932,8 +29051,12 @@
    <code title="attr-input-required">required</code>, and
    <code title="attr-input-size">size</code> content attributes;
    <code title="dom-input-list">list</code>,
-   <code title="dom-input-selectedOption">selectedOption</code>, and
-   <code title="dom-input-value">value</code> DOM attributes.
+   <code title="dom-input-selectedOption">selectedOption</code>,
+   <code title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code title="dom-input-value">value</code> DOM attributes; 
+   <code title="dom-textarea/input-select">select()</code> and
+   <code title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
    <p>The <code title="dom-input-value">value</code> DOM attribute is
    in mode <span title="dom-input-value-value">value</span>.</p>
@@ -29038,7 +29161,7 @@
   <div class="bookkeeping">
 
    <p>The following common <code>input</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">autocomplete</code>,
    <code title="attr-input-list">list</code>,
    <code title="attr-input-maxlength">maxlength</code>,
@@ -29049,8 +29172,12 @@
    <code title="attr-input-required">required</code>, and
    <code title="attr-input-size">size</code> content attributes;
    <code title="dom-input-list">list</code>,
-   <code title="dom-input-selectedOption">selectedOption</code>, and
-   <code title="dom-input-value">value</code> DOM attributes.
+   <code title="dom-input-selectedOption">selectedOption</code>,
+   <code title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code title="dom-input-value">value</code> DOM attributes; 
+   <code title="dom-textarea/input-select">select()</code> and
+   <code title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
    <p>The <code title="dom-input-value">value</code> DOM attribute is
    in mode <span title="dom-input-value-value">value</span>.</p>
@@ -29115,7 +29242,7 @@
   <div class="bookkeeping">
 
    <p>The following common <code>input</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">autocomplete</code>,
    <code title="attr-input-maxlength">maxlength</code>,
    <code title="attr-input-pattern">pattern</code>,
@@ -29123,7 +29250,11 @@
    <code title="attr-input-readonly">readonly</code>,
    <code title="attr-input-required">required</code>, and
    <code title="attr-input-size">size</code> content attributes;
-   <code title="attr-input-value">value</code> DOM attribute.</p>
+   <code title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code title="dom-input-value">value</code> DOM attributes; 
+   <code title="dom-textarea/input-select">select()</code>, and
+   <code title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
    <p>The <code title="event-input-input">input</code> and <code
    title="event-input-change">change</code> events apply.</p>
@@ -29309,9 +29440,13 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The
-   <code class="no-backref" title="dom-input-checked">checked</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">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -29454,9 +29589,13 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The
-   <code class="no-backref" title="dom-input-checked">checked</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">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -29601,9 +29740,13 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The
-   <code class="no-backref" title="dom-input-checked">checked</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">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -29747,9 +29890,13 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The
-   <code class="no-backref" title="dom-input-checked">checked</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">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -29888,9 +30035,13 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The
-   <code class="no-backref" title="dom-input-checked">checked</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">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>, and
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -30016,9 +30167,14 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The following DOM attributes do not apply to the element:
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
-   <code class="no-backref" title="dom-input-checked">checked</code>.</p>
+   <p>The following DOM attributes and methods do not apply to the
+   element:
+   <code class="no-backref" title="dom-input-checked">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -30133,9 +30289,14 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The following DOM attributes do not apply to the element:
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
-   <code class="no-backref" title="dom-input-checked">checked</code>.</p>
+   <p>The following DOM attributes and methods do not apply to the
+   element:
+   <code class="no-backref" title="dom-input-checked">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -30290,9 +30451,14 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</code>.</p>
 
-   <p>The following DOM attributes do not apply to the element:
-   <code class="no-backref" title="dom-input-checked">checked</code> and
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>.</p>
+   <p>The following DOM attributes and methods do not apply to the
+   element:
+   <code class="no-backref" title="dom-input-checked">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>, and
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> DOM attributes;
+   <code class="no-backref" title="dom-textarea/input-select">select()</code> and
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code> methods.</p>
 
   </div>
 
@@ -30379,9 +30545,13 @@
    <p>The following DOM attributes and methods do not apply to the
    element:
    <code class="no-backref" title="dom-input-checked">checked</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
    <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
   </div>
@@ -30471,12 +30641,17 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</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">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code title="event-input-input">input</code> event does not
@@ -30611,12 +30786,17 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</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">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code title="event-input-input">input</code> event does not
@@ -30737,13 +30917,18 @@
    <p>The element's <code title="attr-input-value">value</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">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code title="event-input-input">input</code> event does not
@@ -30820,13 +31005,18 @@
    <code class="no-backref" title="attr-input-step">step</code>, and
    <code class="no-backref" title="attr-dim-width">width</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">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code class="no-backref"
@@ -31040,13 +31230,18 @@
    <p>The element's <code title="attr-input-value">value</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">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code class="no-backref"
@@ -31119,13 +31314,18 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</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">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code class="no-backref"
@@ -31188,13 +31388,18 @@
    <code class="no-backref" title="attr-fs-target">target</code>, and
    <code class="no-backref" title="attr-dim-width">width</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">checked</code>,
    <code class="no-backref" title="dom-input-list">list</code>,
    <code class="no-backref" title="dom-input-selectedOption">selectedOption</code>,
-   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code> and
+   <code class="no-backref" title="dom-textarea/input-selectionStart">selectionStart</code>,
+   <code class="no-backref" title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+   <code class="no-backref" title="dom-input-valueAsDate">valueAsDate</code>, and
    <code class="no-backref" title="dom-input-valueAsNumber">valueAsNumber</code> DOM attributes;
-   <code class="no-backref" title="dom-input-stepDown">stepDown()</code> and
+   <code class="no-backref" title="dom-textarea/input-select">select()</code>,
+   <code class="no-backref" title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>,
+   <code class="no-backref" title="dom-input-stepDown">stepDown()</code>, and
    <code class="no-backref" title="dom-input-stepUp">stepUp()</code> methods.</p>
 
    <p>The <code class="no-backref"
@@ -32829,12 +33034,15 @@
   void <span title="dom-cva-setCustomValidity">setCustomValidity</span>(in DOMString error);
 
   readonly attribute <span>NodeList</span> <span title="dom-lfe-labels">labels</span>;
+
+  void <span title="dom-textarea/input-select">select</span>();
+           attribute unsigned long <span title="dom-textarea/input-selectionStart">selectionStart</span>;
+           attribute unsigned long <span title="dom-textarea/input-selectionEnd">selectionEnd</span>;
+  void <span title="dom-textarea/input-setSelectionRange">setSelectionRange</span>(in unsigned long start, in unsigned long end);
 };</pre>
    </dd> 
   </dl>
 
-  <!-- XXX add selectionStart and company -->
-
   <p>The <code>textarea</code> element <span>represents</span> a multiline plain
   text edit control for the element's <dfn
   title="concept-textarea-raw-value">raw value</dfn>. The contents of
@@ -33044,7 +33252,13 @@
   title="dom-cva-setCustomValidity">setCustomValidity()</code>
   methods, are part of the <span>constraint validation API</span>. The
   <code title="dom-lfe-labels">labels</code> attribute provides a list
-  of the element's <code>label</code>s.</p>
+  of the element's <code>label</code>s. The <code
+  title="dom-textarea/input-select">select()</code>, <code
+  title="dom-textarea/input-selectionStart">selectionStart</code>,
+  <code title="dom-textarea/input-selectionEnd">selectionEnd</code>,
+  and <code
+  title="dom-textarea/input-setSelectionRange">setSelectionRange()</code>
+  methods and attributes expose the element's text selection.</p>
 
 
 
@@ -49155,10 +49369,6 @@
 
   <h4 id="textFieldSelection">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
   value (ack martijnw) -->
 
@@ -49170,11 +49380,16 @@
            attribute unsigned long <span title="dom-textarea/input-selectionStart">selectionStart</span>;
            attribute unsigned long <span title="dom-textarea/input-selectionEnd">selectionEnd</span>;
   void <span title="dom-textarea/input-setSelectionRange">setSelectionRange</span>(in unsigned long start, in unsigned long end);</pre>
-<!-- XXX also add textLength? it seems to be widely used -->
+  <!-- XXX also add textLength? it seems to be widely used -->
 
   <p>These methods and attributes expose and control the selection of
   <code>input</code> and <code>textarea</code> text fields.</p>
 
+  <p>When these methods and attributes are used with
+  <code>input</code> elements while they don't apply, they must raise
+  an <code>INVALID_STATE_ERR</code> exception. Otherwise, they must
+  act as described below.</p>
+
   <p>The <dfn
   title="dom-textarea/input-select"><code>select()</code></dfn> method
   must cause the contents of the text field to be fully selected.</p>
@@ -49245,14 +49460,9 @@
   can include just an invisible character, and the text insertion
   cursor can be placed to one side or another of such a character.</p>
 
-  <p>When these methods and attributes are used with
-  <code>input</code> elements that are not displaying simple text
-  fields, they must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
 
 
 
-
   <h3 id="contenteditable">The <code
   title="attr-contenteditable">contenteditable</code> attribute</h3>
 




More information about the Commit-Watchers mailing list