Fix another typo. undoManager.item() should return the entry when 0 <= n < length, not when n is length.
authorRyosuke Niwa <rniwa@webkit.org>
Fri, 08 Jun 2012 15:57:30 -0700
changeset 10 53943e40f7a0
parent 9 64708ca6aeca
child 11 3fbf142909a7
Fix another typo. undoManager.item() should return the entry when 0 <= n < length, not when n is length.
source.html
undomanager.html
--- a/source.html	Fri Jun 08 15:54:50 2012 -0700
+++ b/source.html	Fri Jun 08 15:57:30 2012 -0700
@@ -279,7 +279,7 @@
 
         <p>The <dfn id="dom-undomanager-item" title="dom-UndoManager-item"><code>item(<var title="">n</var>)</code></dfn>
         method must return a new array representing the <var title="">n</var>th entry in the <a href="#undo-transaction-history">undo transaction history</a> if
-        0 &#8804; <var>n</var> &#8804; <code title="dom-UndoManager-length"><a href="#dom-undomanager-length">length</a></code>, or null otherwise.</p>
+        0 &#8804; <var>n</var> &lt; <code title="dom-UndoManager-length"><a href="#dom-undomanager-length">length</a></code>, or null otherwise.</p>
 
         <p class="note">Being able to access an arbitrary element in the <a href="#undo-transaction-history">undo transaction history</a> is needed to allow scripts to determine
         whether new DOM transaction and the last DOM transaction should being to the same entry or not.</p>
--- a/undomanager.html	Fri Jun 08 15:54:50 2012 -0700
+++ b/undomanager.html	Fri Jun 08 15:57:30 2012 -0700
@@ -219,7 +219,7 @@
             <var title="">merge</var>)</code></dt>
         <dd><p>Clears entries above the current undo position, <a href=#dom-transaction-apply>applies</a> <var title="">transaction</var>,
             and adds it to the beginning of the first entry in <a href=#undo-transaction-history>undo transaction history</a><a>,
-            or of a new </a><a href=#undo-transaction-history>undo transaction history</a><a> if <var title="">merge</var> is set to true.</a></dd><a>
+            or of a new </a><a href=#undo-transaction-history>undo transaction history</a><a> if <var title="">merge</var> is set to false.</a></dd><a>
 
         </a><dt><a><var title="">undoManager</var> . <code title=dom-UndoManager-undo></code></a><code title=dom-UndoManager-undo><a href=#dom-undomanager-undo>undo</a>()</code></dt>
         <dd><p>Unapplies all <a href=#dom-transaction>DOM transactions</a> in the entry immediately after
@@ -273,7 +273,7 @@
             <li>Clear all entries between before the current <a href=#undo-position>undo position</a> without <a href=#dom-transaction-unapply>unapplying</a>
             or <a href=#dom-transaction-reapply>reapplying</a> the <a href=#dom-transaction>transactions</a> in the entires.</li>
             <li><a href=#dom-transaction-apply>Apply</a> the <var title="">transaction</var>.</li>
-            <li>If <var title="">merge</var> is set to true, add an empty entry to the beginning of the <a href=#undo-transaction-history>undo transaction history</a>.</li>
+            <li>If <var title="">merge</var> is set to false, add an empty entry to the beginning of the <a href=#undo-transaction-history>undo transaction history</a>.</li>
             <li>Add the applied transaction to the beginning of the first entry in the <a href=#undo-transaction-history>undo transaction history</a>.</li>
             <li><a href=#fire-a-dom-transaction-event>Fire a DOM transaction event</a> for the transaction applied in step 3 at the <a href=#undo-scope-host>undo scope host</a>
             of this <code><a href=#undomanager>UndoManager</a></code> if the <code><a href=#undomanager>UndoManager</a></code> had not already been <a href=#disconnect-undomanager>disconnected</a>.</li>
@@ -307,7 +307,7 @@
 
         <p>The <dfn id=dom-undomanager-item title=dom-UndoManager-item><code>item(<var title="">n</var>)</code></dfn>
         method must return a new array representing the <var title="">n</var>th entry in the <a href=#undo-transaction-history>undo transaction history</a> if
-        0 &le; <var>n</var> &le; <code title=dom-UndoManager-length><a href=#dom-undomanager-length>length</a></code>, or null otherwise.</p>
+        0 &le; <var>n</var> &lt; <code title=dom-UndoManager-length><a href=#dom-undomanager-length>length</a></code>, or null otherwise.</p>
 
         <p class=note>Being able to access an arbitrary element in the <a href=#undo-transaction-history>undo transaction history</a> is needed to allow scripts to determine
         whether new DOM transaction and the last DOM transaction should being to the same entry or not.</p>