[html5] r790 - /

whatwg at whatwg.org whatwg at whatwg.org
Sun Apr 29 18:58:11 PDT 2007


Author: ianh
Date: 2007-04-29 18:58:09 -0700 (Sun, 29 Apr 2007)
New Revision: 790

Modified:
   index
   source
Log:
[] (0) Fix the table DOM accessors

Modified: index
===================================================================
--- index	2007-04-28 03:44:21 UTC (rev 789)
+++ index	2007-04-30 01:58:09 UTC (rev 790)
@@ -22,7 +22,7 @@
 
    <h1 id=web-applications>Web Applications 1.0</h1>
 
-   <h2 class="no-num no-toc" id=working>Working Draft — 28 April 2007</h2>
+   <h2 class="no-num no-toc" id=working>Working Draft — 30 April 2007</h2>
 
    <p>You can take part in this work. <a
     href="http://www.whatwg.org/mailing-list">Join the working group's
@@ -17254,7 +17254,11 @@
 
   <p>The <dfn id=createcaption
    title=dom-table-createCaption><code>createCaption()</code></dfn> method
-   must return a new <code><a href="#caption0">caption</a></code> element.
+   must return the first <code><a href="#caption0">caption</a></code> element
+   child of the <code><a href="#table">table</a></code> element, if any;
+   otherwise a new <code><a href="#caption0">caption</a></code> element must
+   be created, inserted as the first node of the <code><a
+   href="#table">table</a></code> element, and then returned.
 
   <p>The <dfn id=deletecaption
    title=dom-table-deleteCaption><code>deleteCaption()</code></dfn> method
@@ -17270,11 +17274,19 @@
    new value must be inserted immediately before the first element in the
    <code><a href="#table">table</a></code> element that is neither a <code><a
    href="#caption0">caption</a></code> element nor a <code><a
-   href="#colgroup">colgroup</a></code> element.
+   href="#colgroup">colgroup</a></code> element, if any, or at the end of the
+   table otherwise.
 
   <p>The <dfn id=createthead
    title=dom-table-createTHead><code>createTHead()</code></dfn> method must
-   return a new <code><a href="#thead0">thead</a></code> element.
+   return the first <code><a href="#thead0">thead</a></code> element child of
+   the <code><a href="#table">table</a></code> element, if any; otherwise a
+   new <code><a href="#thead0">thead</a></code> element must be created and
+   inserted immediately before the first element in the <code><a
+   href="#table">table</a></code> element that is neither a <code><a
+   href="#caption0">caption</a></code> element nor a <code><a
+   href="#colgroup">colgroup</a></code> element, if any, or at the end of the
+   table otherwise, and then that new element must be returned.
 
   <p>The <dfn id=deletethead
    title=dom-table-deleteTHead><code>deleteTHead()</code></dfn> method must
@@ -17291,11 +17303,21 @@
    <code><a href="#table">table</a></code> element that is neither a <code><a
    href="#caption0">caption</a></code> element, a <code><a
    href="#colgroup">colgroup</a></code> element, nor a <code><a
-   href="#thead0">thead</a></code> element.
+   href="#thead0">thead</a></code> element, if any, or at the end of the
+   table if there are no such elements.
 
   <p>The <dfn id=createtfoot
    title=dom-table-createTFoot><code>createTFoot()</code></dfn> method must
-   return a new <code><a href="#tfoot0">tfoot</a></code> element.
+   return the first <code><a href="#tfoot0">tfoot</a></code> element child of
+   the <code><a href="#table">table</a></code> element, if any; otherwise a
+   new <code><a href="#tfoot0">tfoot</a></code> element must be created and
+   inserted immediately before the first element in the <code><a
+   href="#table">table</a></code> element that is neither a <code><a
+   href="#caption0">caption</a></code> element, a <code><a
+   href="#colgroup">colgroup</a></code> element, nor a <code><a
+   href="#thead0">thead</a></code> element, if any, or at the end of the
+   table if there are no such elements, and then that new element must be
+   returned.
 
   <p>The <dfn id=deletetfoot
    title=dom-table-deleteTFoot><code>deleteTFoot()</code></dfn> method must
@@ -17306,7 +17328,8 @@
    attribute must return an <code><a
    href="#htmlcollection0">HTMLCollection</a></code> rooted at the <code><a
    href="#table">table</a></code> node, whose filter matches only <code><a
-   href="#tbody">tbody</a></code> elements that are children.
+   href="#tbody">tbody</a></code> elements that are children of the <code><a
+   href="#table">table</a></code> element.
 
   <p>The <dfn id=rows title=dom-table-rows><code>rows</code></dfn> attribute
    must return an <code><a href="#htmlcollection0">HTMLCollection</a></code>

Modified: source
===================================================================
--- source	2007-04-28 03:44:21 UTC (rev 789)
+++ source	2007-04-30 01:58:09 UTC (rev 790)
@@ -14881,7 +14881,10 @@
 
   <p>The <dfn
   title="dom-table-createCaption"><code>createCaption()</code></dfn>
-  method must return a new <code>caption</code> element.</p>
+  method must return the first <code>caption</code> element child of
+  the <code>table</code> element, if any; otherwise a new
+  <code>caption</code> element must be created, inserted as the first
+  node of the <code>table</code> element, and then returned.</p>
 
   <p>The <dfn
   title="dom-table-deleteCaption"><code>deleteCaption()</code></dfn>
@@ -14895,11 +14898,18 @@
   element, if any, must be removed, and the new value must be inserted
   immediately before the first element in the <code>table</code>
   element that is neither a <code>caption</code> element nor a
-  <code>colgroup</code> element.</p>
+  <code>colgroup</code> element, if any, or at the end of the table
+  otherwise.</p>
 
   <p>The <dfn
   title="dom-table-createTHead"><code>createTHead()</code></dfn>
-  method must return a new <code>thead</code> element.</p>
+  method must return the first <code>thead</code> element child of the
+  <code>table</code> element, if any; otherwise a new
+  <code>thead</code> element must be created and inserted immediately
+  before the first element in the <code>table</code> element that is
+  neither a <code>caption</code> element nor a <code>colgroup</code>
+  element, if any, or at the end of the table otherwise, and then that
+  new element must be returned.</p>
 
   <p>The <dfn
   title="dom-table-deleteTHead"><code>deleteTHead()</code></dfn>
@@ -14913,11 +14923,19 @@
   element, if any, must be removed, and the new value must be inserted
   immediately before the first element in the <code>table</code>
   element that is neither a <code>caption</code> element, a
-  <code>colgroup</code> element, nor a <code>thead</code> element.</p>
+  <code>colgroup</code> element, nor a <code>thead</code> element, if
+  any, or at the end of the table if there are no such elements.</p>
 
   <p>The <dfn
   title="dom-table-createTFoot"><code>createTFoot()</code></dfn>
-  method must return a new <code>tfoot</code> element.</p>
+  method must return the first <code>tfoot</code> element child of the
+  <code>table</code> element, if any; otherwise a new
+  <code>tfoot</code> element must be created and inserted immediately
+  before the first element in the <code>table</code> element that is
+  neither a <code>caption</code> element, a <code>colgroup</code>
+  element, nor a <code>thead</code> element, if any, or at the end of
+  the table if there are no such elements, and then that new element
+  must be returned.</p>
 
   <p>The <dfn
   title="dom-table-deleteTFoot"><code>deleteTFoot()</code></dfn>
@@ -14927,7 +14945,8 @@
   <p>The <dfn title="dom-table-tBodies"><code>tBodies</code></dfn>
   attribute must return an <code>HTMLCollection</code> rooted at the
   <code>table</code> node, whose filter matches only
-  <code>tbody</code> elements that are children.</p>
+  <code>tbody</code> elements that are children of the
+  <code>table</code> element.</p>
 
   <p>The <dfn title="dom-table-rows"><code>rows</code></dfn> attribute
   must return an <code>HTMLCollection</code> rooted at the




More information about the Commit-Watchers mailing list