spec/Overview.html 1.1787 2617 Make insertCell() and insertRow() treat

Make insertCell() and insertRow() treat missing arguments like -1. (bug
6214) (whatwg r2617)
http://www.w3.org/Bugs/Public/show_bug.cgi?id=6214

4.9.6 The tbody element
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#the-tbody-element
HTMLTableSectionElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#htmltablesectionelement
insertRow(index)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#dom-tbody-insertrow
HTMLTableRowElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#htmltablerowelement
Status of this document
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#status-of-this-document
A vocabulary and associated APIs for HTML and XHTML
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#a-vocabulary-and-associated-apis-for-html-and-xhtml
insertRow(index)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#dom-table-insertrow
Editor's Draft 30 December 2008
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#editor-s-draft-date-zzz-9-june-2008
HTMLTableElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#htmltableelement
insertCell(index)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1787.html#dom-tr-insertcell

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1786&r2=1.1787&f=h
http://html5.org/tools/web-apps-tracker?from=2616&to=2617

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1786
retrieving revision 1.1787
diff -u -d -r1.1786 -r1.1787
--- Overview.html 29 Dec 2008 23:46:03 -0000 1.1786
+++ Overview.html 30 Dec 2008 00:39:40 -0000 1.1787
@@ -8,7 +8,7 @@
    <p><a href=http://www.w3.org/><img alt=W3C height=48 src=http://www.w3.org/Icons/w3c_home width=72></a></p>
    <h1>HTML 5</h1>
    <h2 class="no-num no-toc" id=a-vocabulary-and-associated-apis-for-html-and-xhtml>A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id=editor-s-draft-date-zzz-9-june-2008><!-- "W3C Working Draft" --> Editor's Draft <!--ZZZ-->29 December 2008</h2>
+   <h2 class="no-num no-toc" id=editor-s-draft-date-zzz-9-june-2008><!-- "W3C Working Draft" --> Editor's Draft <!--ZZZ-->30 December 2008</h2>
    <dl><!-- ZZZ: update the month/day
     <dt>This Version:</dt>
     <dd><a href="http://www.w3.org/TR/2008/WD-html5-20080610/">http://www.w3.org/TR/2008/WD-html5-20080610/</a></dd>
@@ -97,7 +97,7 @@
   specification's progress along the W3C Recommendation
   track.
   <!--ZZZ:-->
-  This specification is the 29 December 2008 <!--ZZZ "Working Draft"-->Editor's Draft.
+  This specification is the 30 December 2008 <!--ZZZ "Working Draft"-->Editor's Draft.
   <!--:ZZZ-->
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href=http://www.whatwg.org/>WHATWG</a>. The two specifications are
   identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
@@ -17748,7 +17748,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>
@@ -17883,9 +17883,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 &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
@@ -17994,7 +17993,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
@@ -18010,11 +18009,10 @@
   element <var title="">table section</var>, act as follows:<p>If <var title="">index</var> is less than &minus;1 or greater than the
   number of elements in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code>
   collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
-  exception.<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>Otherwise, the method must create a <code><a href=#the-tr-element>tr</a></code> element,
+  exception.<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>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>
   element, immediately before the <var title="">index</var>th
   <code><a href=#the-tr-element>tr</a></code> element in the <code title=dom-tbody-rows><a href=#dom-tbody-rows>rows</a></code> collection, and finally must
@@ -18085,7 +18083,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>
@@ -18112,11 +18110,10 @@
   <code><a href=#the-tr-element>tr</a></code> element.<p>The <dfn id=dom-tr-insertcell title=dom-tr-insertCell><code>insertCell(<var title="">index</var>)</code></dfn> method must act as follows:<p>If <var title="">index</var> is less than &minus;1 or greater than the
   number of elements in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code>
   collection, the method must raise an <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code>
-  exception.<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>Otherwise, the method must create a <code><a href=#the-td-element>td</a></code> element,
+  exception.<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>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
   before the <var title="">index</var>th <code><a href=#the-td-element>td</a></code> or
   <code><a href=#the-th-element>th</a></code> element in the <code title=dom-tr-cells><a href=#dom-tr-cells>cells</a></code> collection, and finally must

Received on Tuesday, 30 December 2008 00:43:24 UTC