W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2008

html5/spec Overview.html,1.1786,1.1787

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 30 Dec 2008 00:39:50 +0000
To: public-html-commits@w3.org
Message-Id: <E1LHSeE-0005ZL-SM@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv21393

Modified Files:
	Overview.html 
Log Message:
Make insertCell() and insertRow() treat missing arguments like -1. (bug 6214) (whatwg r2617)

Index: Overview.html
===================================================================
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:40:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 30 December 2008 00:40:01 GMT