[html5] r8184 - [e] (0) Use IDL to set setRangeText()'s selectionMode's default. Fixing https:// [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Sep 13 15:36:09 PDT 2013


Author: ianh
Date: 2013-09-13 15:36:08 -0700 (Fri, 13 Sep 2013)
New Revision: 8184

Modified:
   complete.html
   index
   source
Log:
[e] (0) Use IDL to set setRangeText()'s selectionMode's default.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23193
Affected topics: DOM APIs

Modified: complete.html
===================================================================
--- complete.html	2013-09-13 22:32:49 UTC (rev 8183)
+++ complete.html	2013-09-13 22:36:08 UTC (rev 8184)
@@ -45135,7 +45135,7 @@
            attribute unsigned long <a href=#dom-textarea/input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>;
            attribute DOMString <a href=#dom-textarea/input-selectiondirection title=dom-textarea/input-selectionDirection>selectionDirection</a>;
   void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement);
-  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode);
+  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode = "preserve");
   void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
 
   // <a href="#HTMLInputElement-partial">also has obsolete members</a>
@@ -51634,7 +51634,7 @@
            attribute unsigned long <a href=#dom-textarea/input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>;
            attribute DOMString <a href=#dom-textarea/input-selectiondirection title=dom-textarea/input-selectionDirection>selectionDirection</a>;
   void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement);
-  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode);
+  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode = "preserve");
   void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
 };</pre>
    </dd>
@@ -51936,6 +51936,7 @@
 
   </dl><div class=impl>
 
+<!--CLEANUP-->
   <p>The <dfn id=dom-textarea-cols title=dom-textarea-cols><code>cols</code></dfn>, <dfn id=dom-textarea-placeholder title=dom-textarea-placeholder><code>placeholder</code></dfn>,
   <dfn id=dom-textarea-required title=dom-textarea-required><code>required</code></dfn>, <dfn id=dom-textarea-rows title=dom-textarea-rows><code>rows</code></dfn>, and <dfn id=dom-textarea-wrap title=dom-textarea-wrap><code>wrap</code></dfn> attributes must
   <a href=#reflect>reflect</a> the respective content attributes of the same
@@ -54591,10 +54592,11 @@
            attribute unsigned long <a href=#dom-textarea/input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>;
            attribute DOMString <a href=#dom-textarea/input-selectiondirection title=dom-textarea/input-selectionDirection>selectionDirection</a>;
   void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement);
-  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode);
+  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode = "preserve");
   void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction = "preserve");</pre>
   <!-- v2: also add textLength? it seems to be widely used -->
 
+<!--CLEANUP-->
   <p>The <code title=dom-textarea/input-setRangeText><a href=#dom-textarea/input-setrangetext>setRangeText</a></code> method
   uses the following enumeration:</p>
 
@@ -54602,7 +54604,7 @@
   "<a href=#dom-selectionmode-select title=dom-SelectionMode-select>select</a>",
   "<a href=#dom-selectionmode-start title=dom-SelectionMode-start>start</a>",
   "<a href=#dom-selectionmode-end title=dom-SelectionMode-end>end</a>",
-  "<a href=#dom-selectionmode-preserve title=dom-SelectionMode-preserve>preserve</a>",
+  "<a href=#dom-selectionmode-preserve title=dom-SelectionMode-preserve>preserve</a>", // default
 };</pre>
 
   <p>These methods and attributes expose and control the selection of
@@ -54846,7 +54848,7 @@
 
      </dd>
 
-     <dt>If the fourth argument's value is "<dfn id=dom-selectionmode-preserve title=dom-SelectionMode-preserve><code>preserve</code></dfn>", or if the argument was omitted</dt>
+     <dt>If the fourth argument's value is "<dfn id=dom-selectionmode-preserve title=dom-SelectionMode-preserve><code>preserve</code></dfn>" (the default)</dt>
 
      <dd>
 

Modified: index
===================================================================
--- index	2013-09-13 22:32:49 UTC (rev 8183)
+++ index	2013-09-13 22:36:08 UTC (rev 8184)
@@ -45135,7 +45135,7 @@
            attribute unsigned long <a href=#dom-textarea/input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>;
            attribute DOMString <a href=#dom-textarea/input-selectiondirection title=dom-textarea/input-selectionDirection>selectionDirection</a>;
   void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement);
-  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode);
+  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode = "preserve");
   void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
 
   // <a href="#HTMLInputElement-partial">also has obsolete members</a>
@@ -51634,7 +51634,7 @@
            attribute unsigned long <a href=#dom-textarea/input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>;
            attribute DOMString <a href=#dom-textarea/input-selectiondirection title=dom-textarea/input-selectionDirection>selectionDirection</a>;
   void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement);
-  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode);
+  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode = "preserve");
   void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction);
 };</pre>
    </dd>
@@ -51936,6 +51936,7 @@
 
   </dl><div class=impl>
 
+<!--CLEANUP-->
   <p>The <dfn id=dom-textarea-cols title=dom-textarea-cols><code>cols</code></dfn>, <dfn id=dom-textarea-placeholder title=dom-textarea-placeholder><code>placeholder</code></dfn>,
   <dfn id=dom-textarea-required title=dom-textarea-required><code>required</code></dfn>, <dfn id=dom-textarea-rows title=dom-textarea-rows><code>rows</code></dfn>, and <dfn id=dom-textarea-wrap title=dom-textarea-wrap><code>wrap</code></dfn> attributes must
   <a href=#reflect>reflect</a> the respective content attributes of the same
@@ -54591,10 +54592,11 @@
            attribute unsigned long <a href=#dom-textarea/input-selectionend title=dom-textarea/input-selectionEnd>selectionEnd</a>;
            attribute DOMString <a href=#dom-textarea/input-selectiondirection title=dom-textarea/input-selectionDirection>selectionDirection</a>;
   void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement);
-  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode);
+  void <a href=#dom-textarea/input-setrangetext title=dom-textarea/input-setRangeText>setRangeText</a>(DOMString replacement, unsigned long start, unsigned long end, optional <a href=#selectionmode>SelectionMode</a> selectionMode = "preserve");
   void <a href=#dom-textarea/input-setselectionrange title=dom-textarea/input-setSelectionRange>setSelectionRange</a>(unsigned long start, unsigned long end, optional DOMString direction = "preserve");</pre>
   <!-- v2: also add textLength? it seems to be widely used -->
 
+<!--CLEANUP-->
   <p>The <code title=dom-textarea/input-setRangeText><a href=#dom-textarea/input-setrangetext>setRangeText</a></code> method
   uses the following enumeration:</p>
 
@@ -54602,7 +54604,7 @@
   "<a href=#dom-selectionmode-select title=dom-SelectionMode-select>select</a>",
   "<a href=#dom-selectionmode-start title=dom-SelectionMode-start>start</a>",
   "<a href=#dom-selectionmode-end title=dom-SelectionMode-end>end</a>",
-  "<a href=#dom-selectionmode-preserve title=dom-SelectionMode-preserve>preserve</a>",
+  "<a href=#dom-selectionmode-preserve title=dom-SelectionMode-preserve>preserve</a>", // default
 };</pre>
 
   <p>These methods and attributes expose and control the selection of
@@ -54846,7 +54848,7 @@
 
      </dd>
 
-     <dt>If the fourth argument's value is "<dfn id=dom-selectionmode-preserve title=dom-SelectionMode-preserve><code>preserve</code></dfn>", or if the argument was omitted</dt>
+     <dt>If the fourth argument's value is "<dfn id=dom-selectionmode-preserve title=dom-SelectionMode-preserve><code>preserve</code></dfn>" (the default)</dt>
 
      <dd>
 

Modified: source
===================================================================
--- source	2013-09-13 22:32:49 UTC (rev 8183)
+++ source	2013-09-13 22:36:08 UTC (rev 8184)
@@ -49436,7 +49436,7 @@
            attribute unsigned long <span title="dom-textarea/input-selectionEnd">selectionEnd</span>;
            attribute DOMString <span title="dom-textarea/input-selectionDirection">selectionDirection</span>;
   void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement);
-  void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode);
+  void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode = "preserve");
   void <span title="dom-textarea/input-setSelectionRange">setSelectionRange</span>(unsigned long start, unsigned long end, optional DOMString direction);
 };</pre>
    </dd>
@@ -56696,7 +56696,7 @@
            attribute unsigned long <span title="dom-textarea/input-selectionEnd">selectionEnd</span>;
            attribute DOMString <span title="dom-textarea/input-selectionDirection">selectionDirection</span>;
   void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement);
-  void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode);
+  void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode = "preserve");
   void <span title="dom-textarea/input-setSelectionRange">setSelectionRange</span>(unsigned long start, unsigned long end, optional DOMString direction);
 };</pre>
    </dd>
@@ -57058,6 +57058,7 @@
 
   <div class="impl">
 
+<!--CLEANUP-->
   <p>The <dfn title="dom-textarea-cols"><code>cols</code></dfn>, <dfn
   title="dom-textarea-placeholder"><code>placeholder</code></dfn>,
   <dfn title="dom-textarea-required"><code>required</code></dfn>, <dfn
@@ -60236,10 +60237,11 @@
            attribute unsigned long <span title="dom-textarea/input-selectionEnd">selectionEnd</span>;
            attribute DOMString <span title="dom-textarea/input-selectionDirection">selectionDirection</span>;
   void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement);
-  void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode);
+  void <span title="dom-textarea/input-setRangeText">setRangeText</span>(DOMString replacement, unsigned long start, unsigned long end, optional <span>SelectionMode</span> selectionMode = "preserve");
   void <span title="dom-textarea/input-setSelectionRange">setSelectionRange</span>(unsigned long start, unsigned long end, optional DOMString direction = "preserve");</pre>
   <!-- v2: also add textLength? it seems to be widely used -->
 
+<!--CLEANUP-->
   <p>The <code
   title="dom-textarea/input-setRangeText">setRangeText</code> method
   uses the following enumeration:</p>
@@ -60248,7 +60250,7 @@
   "<span title="dom-SelectionMode-select">select</span>",
   "<span title="dom-SelectionMode-start">start</span>",
   "<span title="dom-SelectionMode-end">end</span>",
-  "<span title="dom-SelectionMode-preserve">preserve</span>",
+  "<span title="dom-SelectionMode-preserve">preserve</span>", // default
 };</pre>
 
   <p>These methods and attributes expose and control the selection of
@@ -60527,7 +60529,7 @@
 
      </dd>
 
-     <dt>If the fourth argument's value is "<dfn title="dom-SelectionMode-preserve"><code>preserve</code></dfn>", or if the argument was omitted</dt>
+     <dt>If the fourth argument's value is "<dfn title="dom-SelectionMode-preserve"><code>preserve</code></dfn>" (the default)</dt>
 
      <dd>
 




More information about the Commit-Watchers mailing list