[html5] r791 - /

whatwg at whatwg.org whatwg at whatwg.org
Sun Apr 29 19:07:32 PDT 2007


Author: ianh
Date: 2007-04-29 19:07:30 -0700 (Sun, 29 Apr 2007)
New Revision: 791

Modified:
   index
   source
Log:
[] (0) Error handling for people setting table accessors to inappropriate nodes

Modified: index
===================================================================
--- index	2007-04-30 01:58:09 UTC (rev 790)
+++ index	2007-04-30 02:07:30 UTC (rev 791)
@@ -17246,11 +17246,14 @@
   <p>The <dfn id=caption title=dom-table-caption><code>caption</code></dfn>
    DOM attribute must return, on getting, the first <code><a
    href="#caption0">caption</a></code> element child of the <code><a
-   href="#table">table</a></code> element. On setting, the first <code><a
+   href="#table">table</a></code> element. On setting, if the new value is a
+   <code><a href="#caption0">caption</a></code> element, the first <code><a
    href="#caption0">caption</a></code> element child of the <code><a
    href="#table">table</a></code> element, if any, must be removed, and the
    new value must be inserted as the first node of the <code><a
-   href="#table">table</a></code> element.
+   href="#table">table</a></code> element. If the new value is not a <code><a
+   href="#caption0">caption</a></code> element, then a
+   <code>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised instead.
 
   <p>The <dfn id=createcaption
    title=dom-table-createCaption><code>createCaption()</code></dfn> method
@@ -17268,14 +17271,17 @@
   <p>The <dfn id=thead title=dom-table-tHead><code>tHead</code></dfn> DOM
    attribute must return, on getting, the first <code><a
    href="#thead0">thead</a></code> element child of the <code><a
-   href="#table">table</a></code> element. On setting, the first <code><a
+   href="#table">table</a></code> element. On setting, if the new value is a
+   <code><a href="#thead0">thead</a></code> element, the first <code><a
    href="#thead0">thead</a></code> element child of the <code><a
    href="#table">table</a></code> element, if any, must be removed, and the
    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, if any, or at the end of the
-   table otherwise.
+   table otherwise. If the new value is not a <code><a
+   href="#thead0">thead</a></code> element, then a
+   <code>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised instead.
 
   <p>The <dfn id=createthead
    title=dom-table-createTHead><code>createTHead()</code></dfn> method must
@@ -17296,7 +17302,8 @@
   <p>The <dfn id=tfoot title=dom-table-tFoot><code>tFoot</code></dfn> DOM
    attribute must return, on getting, the first <code><a
    href="#tfoot0">tfoot</a></code> element child of the <code><a
-   href="#table">table</a></code> element. On setting, the first <code><a
+   href="#table">table</a></code> element. On setting, if the new value is a
+   <code><a href="#tfoot0">tfoot</a></code> element, the first <code><a
    href="#tfoot0">tfoot</a></code> element child of the <code><a
    href="#table">table</a></code> element, if any, must be removed, and the
    new value must be inserted immediately before the first element in the
@@ -17304,7 +17311,9 @@
    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.
+   table if there are no such elements. If the new value is not a <code><a
+   href="#tfoot0">tfoot</a></code> element, then a
+   <code>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised instead.
 
   <p>The <dfn id=createtfoot
    title=dom-table-createTFoot><code>createTFoot()</code></dfn> method must

Modified: source
===================================================================
--- source	2007-04-30 01:58:09 UTC (rev 790)
+++ source	2007-04-30 02:07:30 UTC (rev 791)
@@ -14872,12 +14872,16 @@
   <p>The <code>table</code> element takes part in the <span>table
   model</span>.</p>
 
-  <p>The <dfn title="dom-table-caption"><code>caption</code></dfn>
-  DOM attribute must return, on getting, the first <code>caption</code>
-  element child of the <code>table</code> element. On setting, the
-  first <code>caption</code> element child of the <code>table</code>
+  <p>The <dfn title="dom-table-caption"><code>caption</code></dfn> DOM
+  attribute must return, on getting, the first <code>caption</code>
+  element child of the <code>table</code> element. On setting, if the
+  new value is a <code>caption</code> element, the first
+  <code>caption</code> element child of the <code>table</code>
   element, if any, must be removed, and the new value must be inserted
-  as the first node of the <code>table</code> element.</p>
+  as the first node of the <code>table</code> element. If the new
+  value is not a <code>caption</code> element, then a
+  <code>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised
+  instead.</p>
 
   <p>The <dfn
   title="dom-table-createCaption"><code>createCaption()</code></dfn>
@@ -14893,13 +14897,16 @@
 
   <p>The <dfn title="dom-table-tHead"><code>tHead</code></dfn> DOM
   attribute must return, on getting, the first <code>thead</code>
-  element child of the <code>table</code> element. On setting, the
-  first <code>thead</code> element child of the <code>table</code>
-  element, if any, must be removed, and the new value must be inserted
+  element child of the <code>table</code> element. On setting, if the
+  new value is a <code>thead</code> element, the first
+  <code>thead</code> element child of the <code>table</code> 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, if any, or at the end of the table
-  otherwise.</p>
+  otherwise. If the new value is not a <code>thead</code> element,
+  then a <code>HIERARCHY_REQUEST_ERR</code> DOM exception must be
+  raised instead.</p>
 
   <p>The <dfn
   title="dom-table-createTHead"><code>createTHead()</code></dfn>
@@ -14918,13 +14925,17 @@
 
   <p>The <dfn title="dom-table-tFoot"><code>tFoot</code></dfn> DOM
   attribute must return, on getting, the first <code>tfoot</code>
-  element child of the <code>table</code> element. On setting, the
-  first <code>tfoot</code> element child of the <code>table</code>
-  element, if any, must be removed, and the new value must be inserted
+  element child of the <code>table</code> element. On setting, if the
+  new value is a <code>tfoot</code> element, the first
+  <code>tfoot</code> element child of the <code>table</code> 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, if
-  any, or at the end of the table if there are no such elements.</p>
+  any, or at the end of the table if there are no such elements. If
+  the new value is not a <code>tfoot</code> element, then a
+  <code>HIERARCHY_REQUEST_ERR</code> DOM exception must be raised
+  instead.</p>
 
   <p>The <dfn
   title="dom-table-createTFoot"><code>createTFoot()</code></dfn>




More information about the Commit-Watchers mailing list