hixie: Fix my bogus maths. (whatwg r6383)

hixie: Fix my bogus maths. (whatwg r6383)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5094&r2=1.5095&f=h
http://html5.org/tools/web-apps-tracker?from=6382&to=6383

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5094
retrieving revision 1.5095
diff -u -d -r1.5094 -r1.5095
--- Overview.html 6 Aug 2011 03:33:39 -0000 1.5094
+++ Overview.html 6 Aug 2011 07:13:43 -0000 1.5095
@@ -7099,17 +7099,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>

Received on Saturday, 6 August 2011 07:14:24 UTC