Skip to content

Commit

Permalink
[giow] (2) Make insertCell() and insertRow() treat missing arguments …
Browse files Browse the repository at this point in the history
…like -1. (bug 6214)

git-svn-id: http://svn.whatwg.org/webapps@2617 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 30, 2008
1 parent e44e65f commit 307860c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 33 deletions.
31 changes: 14 additions & 17 deletions index
Expand Up @@ -21,7 +21,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 29 December 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 30 December 2008</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -21903,7 +21903,7 @@ function AddCloud(data, x, y) { ... }</pre>
readonly attribute <a href=#htmlcollection-0>HTMLCollection</a> <a href=#dom-table-tbodies title=dom-table-tBodies>tBodies</a>;
<a href=#htmlelement>HTMLElement</a> <a href=#dom-table-createtbody title=dom-table-createTBody>createTBody</a>();
readonly attribute <a href=#htmlcollection-0>HTMLCollection</a> <a href=#dom-table-rows title=dom-table-rows>rows</a>;
<a href=#htmlelement>HTMLElement</a> <a href=#dom-table-insertrow title=dom-table-insertRow>insertRow</a>(in long index);
<a href=#htmlelement>HTMLElement</a> <a href=#dom-table-insertrow title=dom-table-insertRow>insertRow</a>([Optional] in long index);
void <a href=#dom-table-deleterow title=dom-table-deleteRow>deleteRow</a>(in long index);
};</pre>
</dd>
Expand Down Expand Up @@ -22072,9 +22072,8 @@ function AddCloud(data, x, y) { ... }</pre>
the last <code><a href=#the-tbody-element>tbody</a></code> element in the table, and return the
<code><a href=#the-tr-element>tr</a></code> element.</dd>

<dt>If <var title="">index</var> is equal to &minus;1 or equal to the
number of items in <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code>
collection:</dt>
<dt>If <var title="">index</var> is missing, equal to &minus;1, or
equal to the number of items in <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection:</dt>

<dd>The method must create a <code><a href=#the-tr-element>tr</a></code> element, and append it
to the parent of the last <code><a href=#the-tr-element>tr</a></code> element in the <code title=dom-table-rows><a href=#dom-table-rows>rows</a></code> collection. Then, the newly
Expand Down Expand Up @@ -22216,7 +22215,7 @@ function AddCloud(data, x, y) { ... }</pre>
<dd>
<pre class=idl>interface <dfn id=htmltablesectionelement>HTMLTableSectionElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
readonly attribute <a href=#htmlcollection-0>HTMLCollection</a> <a href=#dom-tbody-rows title=dom-tbody-rows>rows</a>;
<a href=#htmlelement>HTMLElement</a> <a href=#dom-tbody-insertrow title=dom-tbody-insertRow>insertRow</a>(in long index);
<a href=#htmlelement>HTMLElement</a> <a href=#dom-tbody-insertrow title=dom-tbody-insertRow>insertRow</a>([Optional] in long index);
void <a href=#dom-tbody-deleterow title=dom-tbody-deleteRow>deleteRow</a>(in long index);
};</pre>
<p>The <code><a href=#htmltablesectionelement>HTMLTableSectionElement</a></code> interface is also
Expand All @@ -22242,11 +22241,10 @@ function AddCloud(data, x, y) { ... }</pre>
collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>

<p>If <var title="">index</var> is equal to &minus;1 or equal to the
number of items in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code>
collection, the method must create a <code><a href=#the-tr-element>tr</a></code> element, append
it to the element <var title="">table section</var>, and return the
newly created <code><a href=#the-tr-element>tr</a></code> element.</p>
<p>If <var title="">index</var> is missing, equal to &minus;1, or
equal to the number of items in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code> collection, the method must
create a <code><a href=#the-tr-element>tr</a></code> element, append it to the element <var title="">table section</var>, and return the newly created
<code><a href=#the-tr-element>tr</a></code> element.</p>

<p>Otherwise, the method must create a <code><a href=#the-tr-element>tr</a></code> element,
insert it as a child of the <var title="">table section</var>
Expand Down Expand Up @@ -22341,7 +22339,7 @@ function AddCloud(data, x, y) { ... }</pre>
readonly attribute long <a href=#dom-tr-rowindex title=dom-tr-rowIndex>rowIndex</a>;
readonly attribute long <a href=#dom-tr-sectionrowindex title=dom-tr-sectionRowIndex>sectionRowIndex</a>;
readonly attribute <a href=#htmlcollection-0>HTMLCollection</a> <a href=#dom-tr-cells title=dom-tr-cells>cells</a>;
<a href=#htmlelement>HTMLElement</a> <a href=#dom-tr-insertcell title=dom-tr-insertCell>insertCell</a>(in long index);
<a href=#htmlelement>HTMLElement</a> <a href=#dom-tr-insertcell title=dom-tr-insertCell>insertCell</a>([Optional] in long index);
void <span>deleteCell</span>(in long index);
};</pre>
</dd>
Expand Down Expand Up @@ -22382,11 +22380,10 @@ function AddCloud(data, x, y) { ... }</pre>
collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
exception.</p>

<p>If <var title="">index</var> is equal to &minus;1 or equal to the
number of items in <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code>
collection, the method must create a <code><a href=#the-td-element>td</a></code> element, append
it to the <code><a href=#the-tr-element>tr</a></code> element, and return the newly created
<code><a href=#the-td-element>td</a></code> element.</p>
<p>If <var title="">index</var> is missing, equal to &minus;1, or
equal to the number of items in <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection, the method must create
a <code><a href=#the-td-element>td</a></code> element, append it to the <code><a href=#the-tr-element>tr</a></code> element,
and return the newly created <code><a href=#the-td-element>td</a></code> element.</p>

<p>Otherwise, the method must create a <code><a href=#the-td-element>td</a></code> element,
insert it as a child of the <code><a href=#the-tr-element>tr</a></code> element, immediately
Expand Down
33 changes: 17 additions & 16 deletions source
Expand Up @@ -24167,7 +24167,7 @@ function AddCloud(data, x, y) { ... }</pre>
readonly attribute <span>HTMLCollection</span> <span title="dom-table-tBodies">tBodies</span>;
<span>HTMLElement</span> <span title="dom-table-createTBody">createTBody</span>();
readonly attribute <span>HTMLCollection</span> <span title="dom-table-rows">rows</span>;
<span>HTMLElement</span> <span title="dom-table-insertRow">insertRow</span>(in long index);
<span>HTMLElement</span> <span title="dom-table-insertRow">insertRow</span>([Optional] in long index);
void <span title="dom-table-deleteRow">deleteRow</span>(in long index);
};</pre>
</dd>
Expand Down Expand Up @@ -24358,9 +24358,9 @@ function AddCloud(data, x, y) { ... }</pre>
the last <code>tbody</code> element in the table, and return the
<code>tr</code> element.</dd>

<dt>If <var title="">index</var> is equal to &#x2212;1 or equal to the
number of items in <code title="dom-table-rows">rows</code>
collection:</dt>
<dt>If <var title="">index</var> is missing, equal to &#x2212;1, or
equal to the number of items in <code
title="dom-table-rows">rows</code> collection:</dt>

<dd>The method must create a <code>tr</code> element, and append it
to the parent of the last <code>tr</code> element in the <code
Expand Down Expand Up @@ -24530,7 +24530,7 @@ function AddCloud(data, x, y) { ... }</pre>
<dd>
<pre class="idl">interface <dfn>HTMLTableSectionElement</dfn> : <span>HTMLElement</span> {
readonly attribute <span>HTMLCollection</span> <span title="dom-tbody-rows">rows</span>;
<span>HTMLElement</span> <span title="dom-tbody-insertRow">insertRow</span>(in long index);
<span>HTMLElement</span> <span title="dom-tbody-insertRow">insertRow</span>([Optional] in long index);
void <span title="dom-tbody-deleteRow">deleteRow</span>(in long index);
};</pre>
<p>The <code>HTMLTableSectionElement</code> interface is also
Expand Down Expand Up @@ -24561,11 +24561,12 @@ function AddCloud(data, x, y) { ... }</pre>
collection, the method must raise an <code>INDEX_SIZE_ERR</code>
exception.</p>

<p>If <var title="">index</var> is equal to &#x2212;1 or equal to the
number of items in the <code title="dom-tbody-rows">rows</code>
collection, the method must create a <code>tr</code> element, append
it to the element <var title="">table section</var>, and return the
newly created <code>tr</code> element.</p>
<p>If <var title="">index</var> is missing, equal to &#x2212;1, or
equal to the number of items in the <code
title="dom-tbody-rows">rows</code> collection, the method must
create a <code>tr</code> element, append it to the element <var
title="">table section</var>, and return the newly created
<code>tr</code> element.</p>

<p>Otherwise, the method must create a <code>tr</code> element,
insert it as a child of the <var title="">table section</var>
Expand Down Expand Up @@ -24676,7 +24677,7 @@ function AddCloud(data, x, y) { ... }</pre>
readonly attribute long <span title="dom-tr-rowIndex">rowIndex</span>;
readonly attribute long <span title="dom-tr-sectionRowIndex">sectionRowIndex</span>;
readonly attribute <span>HTMLCollection</span> <span title="dom-tr-cells">cells</span>;
<span>HTMLElement</span> <span title="dom-tr-insertCell">insertCell</span>(in long index);
<span>HTMLElement</span> <span title="dom-tr-insertCell">insertCell</span>([Optional] in long index);
void <span>deleteCell</span>(in long index);
};</pre>
</dd>
Expand Down Expand Up @@ -24725,11 +24726,11 @@ function AddCloud(data, x, y) { ... }</pre>
collection, the method must raise an <code>INDEX_SIZE_ERR</code>
exception.</p>

<p>If <var title="">index</var> is equal to &#x2212;1 or equal to the
number of items in <code title="dom-tr-cells">cells</code>
collection, the method must create a <code>td</code> element, append
it to the <code>tr</code> element, and return the newly created
<code>td</code> element.</p>
<p>If <var title="">index</var> is missing, equal to &#x2212;1, or
equal to the number of items in <code
title="dom-tr-cells">cells</code> collection, the method must create
a <code>td</code> element, append it to the <code>tr</code> element,
and return the newly created <code>td</code> element.</p>

<p>Otherwise, the method must create a <code>td</code> element,
insert it as a child of the <code>tr</code> element, immediately
Expand Down

0 comments on commit 307860c

Please sign in to comment.