Skip to content

Commit

Permalink
[] (0) deleteRow(-1) support
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@1395 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Mar 23, 2008
1 parent 3c32731 commit 026db8c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 18 deletions.
34 changes: 25 additions & 9 deletions index
Expand Up @@ -19460,14 +19460,30 @@ notes on what would need to be defined for dashed lines:
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 &#x2212;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>
Expand Down Expand Up @@ -47307,7 +47323,7 @@ interface <dfn id=timeouthandler>TimeoutHandler</dfn> {
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&aring;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&aring;s&auml;ther, David Hyatt, Debi
Orton, Derek Featherstone, DeWitt Clinton, Dimitri Glazkov, dolphinling,
Expand Down
32 changes: 23 additions & 9 deletions source
Expand Up @@ -17065,14 +17065,28 @@ notes on what would need to be defined for dashed lines:

</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 &#x2212;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>
Expand Down Expand Up @@ -43252,7 +43266,7 @@ interface <dfn>TimeoutHandler</dfn> {
Iliya Krempeaux, Charles McCathieNevile, Christian Biesinger,
Christian Johansen, Chriswa, Collin Jackson, Daniel Brumbaugh
Keeney, Daniel Glazman, Daniel Peng, Daniel Sp&aring;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&aring;s&auml;ther,
David Hyatt, Debi Orton, Derek Featherstone, DeWitt Clinton, Dimitri
Glazkov, dolphinling, Doron Rosenberg, Doug Kramer, Eira Monstad,
Expand Down

0 comments on commit 026db8c

Please sign in to comment.