[html5] r1395 - /
whatwg at whatwg.org
whatwg at whatwg.org
Sun Mar 23 12:02:21 PDT 2008
Author: ianh
Date: 2008-03-23 12:02:20 -0700 (Sun, 23 Mar 2008)
New Revision: 1395
Modified:
index
source
Log:
[] (0) deleteRow(-1) support
Modified: index
===================================================================
--- index 2008-03-23 18:53:42 UTC (rev 1394)
+++ index 2008-03-23 19:02:20 UTC (rev 1395)
@@ -19460,15 +19460,31 @@
must return the newly created <code><a href="#tr">tr</a></code> element.
</dl>
- <p>The <dfn id=deleterow title=dom-table-deleteRow><code>deleteRow(<var
- title="">index</var>)</code></dfn> method must remove the <var
- title="">index</var>th element in the <code title=dom-table-rows><a
- href="#rows">rows</a></code> collection from its parent. If <var
- title="">index</var> is less than zero or greater than or equal to the
- number of elements in the <code title=dom-table-rows><a
- href="#rows">rows</a></code> collection, the method must instead raise an
- <code>INDEX_SIZE_ERR</code> exception.
+ <p>When the <dfn id=deleterow
+ title=dom-table-deleteRow><code>deleteRow(<var
+ title="">index</var>)</code></dfn> method is called, the user agent must
+ run the following steps:
+ <ol>
+ <li>
+ <p>If <var title="">index</var> is equal to −1, then <var
+ title="">index</var> must be set to the number if items in the <code
+ title=dom-table-rows><a href="#rows">rows</a></code> collection, minus
+ one.
+
+ <li>
+ <p>Now, if <var title="">index</var> is less than zero, or greater than
+ or equal to the number of elements in the <code title=dom-table-rows><a
+ href="#rows">rows</a></code> collection, the method must instead raise
+ an <code>INDEX_SIZE_ERR</code> exception, and these steps must be
+ aborted.
+
+ <li>
+ <p>Otherwise, the method must remove the <var title="">index</var>th
+ element in the <code title=dom-table-rows><a
+ href="#rows">rows</a></code> collection from its parent.</p>
+ </ol>
+
<h4 id=the-caption><span class=secno>3.13.3 </span>The <dfn
id=caption0><code>caption</code></dfn> element</h4>
@@ -47307,7 +47323,7 @@
Yun), Charl van Niekerk, Charles Iliya Krempeaux, Charles McCathieNevile,
Christian Biesinger, Christian Johansen, Chriswa, Collin Jackson, Daniel
Brumbaugh Keeney, Daniel Glazman, Daniel Peng, Daniel Spång, Darin
- Alder, Darin Fisher, Dave Singer, Dave Townsend<!-- Mossop on moz
+ Adler, Darin Fisher, Dave Singer, Dave Townsend<!-- Mossop on moz
irc -->,
David Baron, David Flanagan, David Håsäther, David Hyatt, Debi
Orton, Derek Featherstone, DeWitt Clinton, Dimitri Glazkov, dolphinling,
Modified: source
===================================================================
--- source 2008-03-23 18:53:42 UTC (rev 1394)
+++ source 2008-03-23 19:02:20 UTC (rev 1395)
@@ -17065,16 +17065,30 @@
</dl>
- <p>The <dfn title="dom-table-deleteRow"><code>deleteRow(<var
- title="">index</var>)</code></dfn> method must remove the <var
- title="">index</var>th element in the <code
- title="dom-table-rows">rows</code> collection from its parent. If
- <var title="">index</var> is less than zero or greater than or equal
- to the number of elements in the <code
- title="dom-table-rows">rows</code> collection, the method must
- instead raise an <code>INDEX_SIZE_ERR</code> exception.</p>
+ <p>When the <dfn title="dom-table-deleteRow"><code>deleteRow(<var
+ title="">index</var>)</code></dfn> method is called, the user agent
+ must run the following steps:</p>
+ <ol>
+ <li><p>If <var title="">index</var> is equal to −1, then
+ <var title="">index</var> must be set to the number if items in the
+ <code title="dom-table-rows">rows</code> collection, minus
+ one.</p></li>
+
+ <li><p>Now, if <var title="">index</var> is less than zero, or
+ greater than or equal to the number of elements in the <code
+ title="dom-table-rows">rows</code> collection, the method must
+ instead raise an <code>INDEX_SIZE_ERR</code> exception, and these
+ steps must be aborted.</p></li>
+
+ <li><p>Otherwise, the method must remove the <var
+ title="">index</var>th element in the <code
+ title="dom-table-rows">rows</code> collection from its parent.</p>
+
+ </ol>
+
+
<h4>The <dfn><code>caption</code></dfn> element</h4>
<dl class="element">
@@ -43252,7 +43266,7 @@
Iliya Krempeaux, Charles McCathieNevile, Christian Biesinger,
Christian Johansen, Chriswa, Collin Jackson, Daniel Brumbaugh
Keeney, Daniel Glazman, Daniel Peng, Daniel Spång, Darin
- Alder, Darin Fisher, Dave Singer, Dave Townsend<!-- Mossop on moz
+ Adler, Darin Fisher, Dave Singer, Dave Townsend<!-- Mossop on moz
irc -->, David Baron, David Flanagan, David Håsäther,
David Hyatt, Debi Orton, Derek Featherstone, DeWitt Clinton, Dimitri
Glazkov, dolphinling, Doron Rosenberg, Doug Kramer, Eira Monstad,
More information about the Commit-Watchers
mailing list