[html5] r2617 - [giow] (2) Make insertCell() and insertRow() treat missing arguments like -1. (b [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Dec 29 16:39:35 PST 2008


Author: ianh
Date: 2008-12-29 16:39:34 -0800 (Mon, 29 Dec 2008)
New Revision: 2617

Modified:
   index
   source
Log:
[giow] (2) Make insertCell() and insertRow() treat missing arguments like -1. (bug 6214)

Modified: index
===================================================================
--- index	2008-12-29 23:45:57 UTC (rev 2616)
+++ index	2008-12-30 00:39:34 UTC (rev 2617)
@@ -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-—-date:-01-jan-1901>Draft Recommendation — 29 December 2008</h2>
+   <h2 class="no-num no-toc" id=draft-recommendation-—-date:-01-jan-1901>Draft Recommendation — 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>
@@ -21903,7 +21903,7 @@
   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>
@@ -22072,9 +22072,8 @@
    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 −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 −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
@@ -22216,7 +22215,7 @@
    <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
@@ -22242,11 +22241,10 @@
   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 −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 −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>
@@ -22341,7 +22339,7 @@
   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>
@@ -22382,11 +22380,10 @@
   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 −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 −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

Modified: source
===================================================================
--- source	2008-12-29 23:45:57 UTC (rev 2616)
+++ source	2008-12-30 00:39:34 UTC (rev 2617)
@@ -24167,7 +24167,7 @@
   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>
@@ -24358,9 +24358,9 @@
    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
@@ -24530,7 +24530,7 @@
    <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
@@ -24561,11 +24561,12 @@
   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>
@@ -24676,7 +24677,7 @@
   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>
@@ -24725,11 +24726,11 @@
   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




More information about the Commit-Watchers mailing list