[html5] r6383 - [giow] (0) Fix my bogus maths. Fixing http://www.w3.org/Bugs/Public/show_bug.cgi [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Aug 6 00:13:39 PDT 2011


Author: ianh
Date: 2011-08-06 00:13:37 -0700 (Sat, 06 Aug 2011)
New Revision: 6383

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Fix my bogus maths.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13671

Modified: complete.html
===================================================================
--- complete.html	2011-08-06 03:54:07 UTC (rev 6382)
+++ complete.html	2011-08-06 07:13:37 UTC (rev 6383)
@@ -8356,17 +8356,18 @@
    <li><p>Let <var title="">n</var> be <var title="">index</var> minus
    <var title="">length</var>.</li>
 
-   <li><p>If <var title="">n</var> is greater than one, then append
-   <var title="">n</var> new <code><a href=#the-option-element>option</a></code> elements with no
-   attributes and no child nodes to the <code><a href=#the-select-element>select</a></code> element on
-   which the <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted. Mutation
-   events must be fired as if a <code><a href=#documentfragment>DocumentFragment</a></code>
-   containing the new <code><a href=#the-option-element>option</a></code> elements had been
-   inserted.</li>
+   <li><p>If <var title="">n</var> is greater than zero, then append
+   <span title=""><var title="">n</var>-1</span> new
+   <code><a href=#the-option-element>option</a></code> elements with no attributes and no child nodes
+   to the <code><a href=#the-select-element>select</a></code> element on which the
+   <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted. Mutation events must
+   be fired as if a <code><a href=#documentfragment>DocumentFragment</a></code> containing the new
+   <code><a href=#the-option-element>option</a></code> elements had been inserted.</li>
 
-   <li><p>If <var title="">n</var> is zero, append <var title="">value</var> to the <code><a href=#the-select-element>select</a></code> element. Otherwise,
-   replace the <var title="">index</var>th element in the collection
-   by <var title="">value</var>.</li>
+   <li><p>If <var title="">n</var> is greater than or equal to zero,
+   append <var title="">value</var> to the <code><a href=#the-select-element>select</a></code>
+   element. Otherwise, replace the <var title="">index</var>th element
+   in the collection by <var title="">value</var>.</li>
 
   </ol><p>The <dfn id=dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add><code>add(<var title="">element</var>, <var title="">before</var>)</code></dfn>
   method must act according to the following algorithm:</p>

Modified: index
===================================================================
--- index	2011-08-06 03:54:07 UTC (rev 6382)
+++ index	2011-08-06 07:13:37 UTC (rev 6383)
@@ -8225,17 +8225,18 @@
    <li><p>Let <var title="">n</var> be <var title="">index</var> minus
    <var title="">length</var>.</li>
 
-   <li><p>If <var title="">n</var> is greater than one, then append
-   <var title="">n</var> new <code><a href=#the-option-element>option</a></code> elements with no
-   attributes and no child nodes to the <code><a href=#the-select-element>select</a></code> element on
-   which the <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted. Mutation
-   events must be fired as if a <code><a href=#documentfragment>DocumentFragment</a></code>
-   containing the new <code><a href=#the-option-element>option</a></code> elements had been
-   inserted.</li>
+   <li><p>If <var title="">n</var> is greater than zero, then append
+   <span title=""><var title="">n</var>-1</span> new
+   <code><a href=#the-option-element>option</a></code> elements with no attributes and no child nodes
+   to the <code><a href=#the-select-element>select</a></code> element on which the
+   <code><a href=#htmloptionscollection>HTMLOptionsCollection</a></code> is rooted. Mutation events must
+   be fired as if a <code><a href=#documentfragment>DocumentFragment</a></code> containing the new
+   <code><a href=#the-option-element>option</a></code> elements had been inserted.</li>
 
-   <li><p>If <var title="">n</var> is zero, append <var title="">value</var> to the <code><a href=#the-select-element>select</a></code> element. Otherwise,
-   replace the <var title="">index</var>th element in the collection
-   by <var title="">value</var>.</li>
+   <li><p>If <var title="">n</var> is greater than or equal to zero,
+   append <var title="">value</var> to the <code><a href=#the-select-element>select</a></code>
+   element. Otherwise, replace the <var title="">index</var>th element
+   in the collection by <var title="">value</var>.</li>
 
   </ol><p>The <dfn id=dom-htmloptionscollection-add title=dom-HTMLOptionsCollection-add><code>add(<var title="">element</var>, <var title="">before</var>)</code></dfn>
   method must act according to the following algorithm:</p>

Modified: source
===================================================================
--- source	2011-08-06 03:54:07 UTC (rev 6382)
+++ source	2011-08-06 07:13:37 UTC (rev 6383)
@@ -8252,18 +8252,18 @@
    <li><p>Let <var title="">n</var> be <var title="">index</var> minus
    <var title="">length</var>.</p></li>
 
-   <li><p>If <var title="">n</var> is greater than one, then append
-   <var title="">n</var> new <code>option</code> elements with no
-   attributes and no child nodes to the <code>select</code> element on
-   which the <code>HTMLOptionsCollection</code> is rooted. Mutation
-   events must be fired as if a <code>DocumentFragment</code>
-   containing the new <code>option</code> elements had been
-   inserted.</p></li>
+   <li><p>If <var title="">n</var> is greater than zero, then append
+   <span title=""><var title="">n</var>-1</span> new
+   <code>option</code> elements with no attributes and no child nodes
+   to the <code>select</code> element on which the
+   <code>HTMLOptionsCollection</code> is rooted. Mutation events must
+   be fired as if a <code>DocumentFragment</code> containing the new
+   <code>option</code> elements had been inserted.</p></li>
 
-   <li><p>If <var title="">n</var> is zero, append <var
-   title="">value</var> to the <code>select</code> element. Otherwise,
-   replace the <var title="">index</var>th element in the collection
-   by <var title="">value</var>.</p></li>
+   <li><p>If <var title="">n</var> is greater than or equal to zero,
+   append <var title="">value</var> to the <code>select</code>
+   element. Otherwise, replace the <var title="">index</var>th element
+   in the collection by <var title="">value</var>.</p></li>
 
   </ol>
 




More information about the Commit-Watchers mailing list