[html5] r1389 - /

whatwg at whatwg.org whatwg at whatwg.org
Sun Mar 23 01:34:08 PDT 2008


Author: ianh
Date: 2008-03-23 01:34:07 -0700 (Sun, 23 Mar 2008)
New Revision: 1389

Modified:
   index
   source
Log:
[e] (0) Change the way we define col-span, colgroup-span, colspan, and rowspan to make use of some predefined 'macros'.

Modified: index
===================================================================
--- index	2008-03-23 08:21:47 UTC (rev 1388)
+++ index	2008-03-23 08:34:07 UTC (rev 1389)
@@ -19545,10 +19545,7 @@
    <code><a href="#col">col</a></code> elements, then the element may have a
    <dfn id=span0 title=attr-colgroup-span><code>span</code></dfn> content
    attribute specified, whose value must be a <a href="#valid">valid
-   non-negative integer</a> greater than zero. Its default value, which must
-   be used if <a href="#rules" title="rules for parsing non-negative
-   integers">parsing the attribute as a non-negative integer</a> returns
-   either an error or zero, is 1.
+   non-negative integer</a> greater than zero.
 
   <p>The <code><a href="#colgroup">colgroup</a></code> element and its <code
    title=attr-colgroup-span><a href="#span0">span</a></code> attribute take
@@ -19556,8 +19553,8 @@
 
   <p>The <dfn id=span1 title=dom-colgroup-span><code>span</code></dfn> DOM
    attribute must <a href="#reflect">reflect</a> the content attribute of the
-   same name, with the exception that on setting, if the new value is 0, then
-   an <code>INDEX_SIZE_ERR</code> exception must be raised.
+   same name. The value must be <a href="#limited1">limited to only positive
+   non-zero numbers</a>.
 
   <h4 id=the-col><span class=secno>3.13.5 </span>The <dfn
    id=col><code>col</code></dfn> element</h4>
@@ -19602,10 +19599,7 @@
   <p>The element may have a <dfn id=span2
    title=attr-col-span><code>span</code></dfn> content attribute specified,
    whose value must be a <a href="#valid">valid non-negative integer</a>
-   greater than zero. Its default value, which must be used if <a
-   href="#rules" title="rules for parsing non-negative integers">parsing the
-   attribute as a non-negative integer</a> returns either an error or zero,
-   is 1.
+   greater than zero.
 
   <p>The <code><a href="#col">col</a></code> element and its <code
    title=attr-col-span><a href="#span2">span</a></code> attribute take part
@@ -19613,8 +19607,8 @@
 
   <p>The <dfn id=span3 title=dom-col-span><code>span</code></dfn> DOM
    attribute must <a href="#reflect">reflect</a> the content attribute of the
-   same name, with the exception that on setting, if the new value is 0, then
-   an <code>INDEX_SIZE_ERR</code> exception must be raised.
+   same name. The value must be <a href="#limited1">limited to only positive
+   non-zero numbers</a>.
 
   <h4 id=the-tbody><span class=secno>3.13.6 </span>The <dfn
    id=tbody><code>tbody</code></dfn> element</h4>
@@ -20078,18 +20072,13 @@
    href="#th">th</a></code> elements may have a <dfn id=colspan
    title=attr-tdth-colspan><code>colspan</code></dfn> content attribute
    specified, whose value must be a <a href="#valid">valid non-negative
-   integer</a> greater than zero. Its default value, which must be used if <a
-   href="#rules" title="rules for parsing non-negative integers">parsing the
-   attribute as a non-negative integer</a> returns either an error or zero,
-   is 1.
+   integer</a> greater than zero.
 
   <p>The <code><a href="#td">td</a></code> and <code><a
    href="#th">th</a></code> elements may also have a <dfn id=rowspan
    title=attr-tdth-rowspan><code>rowspan</code></dfn> content attribute
    specified, whose value must be a <a href="#valid">valid non-negative
-   integer</a>. Its default value, which must be used if <a href="#rules"
-   title="rules for parsing non-negative integers">parsing the attribute as a
-   non-negative integer</a> returns an error, is also 1.
+   integer</a>.
 
   <p>The <code><a href="#td">td</a></code> and <code><a
    href="#th">th</a></code> elements implement interfaces that inherit from
@@ -20098,19 +20087,21 @@
 
   <pre
    class=idl>interface <dfn id=htmltablecellelement>HTMLTableCellElement</dfn> : <a href="#htmlelement">HTMLElement</a> {
-           attribute long <span title=dom-td-colSpan>colSpan</span>;
-           attribute long <span title=dom-td-rowSpan>rowSpan</span>;
-  readonly attribute long <span title=dom-td-cellIndex>cellIndex</span>;
+           attribute long <a href="#colspan0" title=dom-tdth-colSpan>colSpan</a>;
+           attribute long <a href="#rowspan0" title=dom-tdth-rowSpan>rowSpan</a>;
+  readonly attribute long <a href="#cellindex" title=dom-tdth-cellIndex>cellIndex</a>;
 };</pre>
 
   <p>The <dfn id=colspan0 title=dom-tdth-colspan><code>colspan</code></dfn>
    DOM attribute must <a href="#reflect">reflect</a> the content attribute of
-   the same name, with the exception that on setting, if the new value is 0,
-   then an <code>INDEX_SIZE_ERR</code> exception must be raised.
+   the same name. The value must be <a href="#limited1">limited to only
+   positive non-zero numbers</a>.
 
   <p>The <dfn id=rowspan0 title=dom-tdth-rowspan><code>rowspan</code></dfn>
    DOM attribute must <a href="#reflect">reflect</a> the content attribute of
-   the same name.
+   the same name. Its default value, which must be used if <a href="#rules"
+   title="rules for parsing non-negative integers">parsing the attribute as a
+   non-negative integer</a> returns an error, is also 1.
 
   <p>The <dfn id=cellindex
    title=dom-tdth-cellIndex><code>cellIndex</code></dfn> DOM attribute must,
@@ -20639,18 +20630,20 @@
 
    <li>
     <p>If the <var title="">current cell</var> has a <code
-     title="">colspan</code> attribute, then <a href="#rules" title="rules
-     for parsing non-negative integers">parse that attribute's value</a>, and
-     let <var title="">colspan</var> be the result.</p>
+     title=attr-tdth-colspan><a href="#colspan">colspan</a></code> attribute,
+     then <a href="#rules" title="rules for parsing non-negative
+     integers">parse that attribute's value</a>, and let <var
+     title="">colspan</var> be the result.</p>
 
     <p>If parsing that value failed, or returned zero, or if the attribute is
      absent, then let <var title="">colspan</var> be 1, instead.</p>
 
    <li>
     <p>If the <var title="">current cell</var> has a <code
-     title="">rowspan</code> attribute, then <a href="#rules" title="rules
-     for parsing non-negative integers">parse that attribute's value</a>, and
-     let <var title="">rowspan</var> be the result.</p>
+     title=attr-tdth-rowspan><a href="#rowspan">rowspan</a></code> attribute,
+     then <a href="#rules" title="rules for parsing non-negative
+     integers">parse that attribute's value</a>, and let <var
+     title="">rowspan</var> be the result.</p>
 
     <p>If parsing that value failed or if the attribute is absent, then let
      <var title="">rowspan</var> be 1, instead.</p>

Modified: source
===================================================================
--- source	2008-03-23 08:21:47 UTC (rev 1388)
+++ source	2008-03-23 08:34:07 UTC (rev 1389)
@@ -17129,10 +17129,7 @@
   elements, then the element may have a <dfn
   title="attr-colgroup-span"><code>span</code></dfn> content attribute
   specified, whose value must be a <span>valid non-negative
-  integer</span> greater than zero. Its default value, which must be
-  used if <span title="rules for parsing non-negative
-  integers">parsing the attribute as a non-negative integer</span>
-  returns either an error or zero, is 1.</p>
+  integer</span> greater than zero.</p>
 
   <p>The <code>colgroup</code> element and its <code
   title="attr-colgroup-span">span</code> attribute take part in the
@@ -17140,8 +17137,8 @@
 
   <p>The <dfn title="dom-colgroup-span"><code>span</code></dfn> DOM
   attribute must <span>reflect</span> the content attribute of the
-  same name, with the exception that on setting, if the new value is
-  0, then an <code>INDEX_SIZE_ERR</code> exception must be raised.</p>
+  same name. The value must be <span>limited to only positive non-zero
+  numbers</span>.</p>
 
 
   <h4>The <dfn><code>col</code></dfn> element</h4>
@@ -17175,10 +17172,7 @@
   <p>The element may have a <dfn
   title="attr-col-span"><code>span</code></dfn> content attribute
   specified, whose value must be a <span>valid non-negative
-  integer</span> greater than zero. Its default value, which must be
-  used if <span title="rules for parsing non-negative
-  integers">parsing the attribute as a non-negative integer</span>
-  returns either an error or zero, is 1.</p>
+  integer</span> greater than zero.</p>
 
   <p>The <code>col</code> element and its <code
   title="attr-col-span">span</code> attribute take part in the
@@ -17186,8 +17180,8 @@
 
   <p>The <dfn title="dom-col-span"><code>span</code></dfn> DOM
   attribute must <span>reflect</span> the content attribute of the
-  same name, with the exception that on setting, if the new value is
-  0, then an <code>INDEX_SIZE_ERR</code> exception must be raised.</p>
+  same name. The value must be <span>limited to only positive non-zero
+  numbers</span>.</p>
 
 
   <h4>The <dfn><code>tbody</code></dfn> element</h4>
@@ -17564,37 +17558,34 @@
   <p>The <code>td</code> and <code>th</code> elements may have a <dfn
   title="attr-tdth-colspan"><code>colspan</code></dfn> content
   attribute specified, whose value must be a <span>valid non-negative
-  integer</span> greater than zero. Its default value, which must be
-  used if <span title="rules for parsing non-negative
-  integers">parsing the attribute as a non-negative integer</span>
-  returns either an error or zero, is 1.</p>
+  integer</span> greater than zero.</p>
 
   <p>The <code>td</code> and <code>th</code> elements may also have a
   <dfn title="attr-tdth-rowspan"><code>rowspan</code></dfn> content
   attribute specified, whose value must be a <span>valid non-negative
-  integer</span>. Its default value, which must be used if <span
-  title="rules for parsing non-negative integers">parsing the
-  attribute as a non-negative integer</span> returns an error, is also
-  1.</p>
+  integer</span>.</p>
 
   <p>The <code>td</code> and <code>th</code> elements implement
   interfaces that inherit from the <code>HTMLTableCellElement</code>
   interface:</p>
 
   <pre class="idl">interface <dfn>HTMLTableCellElement</dfn> : <span>HTMLElement</span> {
-           attribute long <span title="dom-td-colSpan">colSpan</span>;
-           attribute long <span title="dom-td-rowSpan">rowSpan</span>;
-  readonly attribute long <span title="dom-td-cellIndex">cellIndex</span>;
+           attribute long <span title="dom-tdth-colSpan">colSpan</span>;
+           attribute long <span title="dom-tdth-rowSpan">rowSpan</span>;
+  readonly attribute long <span title="dom-tdth-cellIndex">cellIndex</span>;
 };</pre>
 
   <p>The <dfn title="dom-tdth-colspan"><code>colspan</code></dfn> DOM
   attribute must <span>reflect</span> the content attribute of the
-  same name, with the exception that on setting, if the new value is
-  0, then an <code>INDEX_SIZE_ERR</code> exception must be raised.</p>
+  same name. The value must be <span>limited to only positive non-zero
+  numbers</span>.</p>
 
   <p>The <dfn title="dom-tdth-rowspan"><code>rowspan</code></dfn> DOM
   attribute must <span>reflect</span> the content attribute of the
-  same name.</p>
+  same name. Its default value, which must be used if <span
+  title="rules for parsing non-negative integers">parsing the
+  attribute as a non-negative integer</span> returns an error, is also
+  1.</p>
 
   <p>The <dfn title="dom-tdth-cellIndex"><code>cellIndex</code></dfn>
   DOM attribute must, if the element has a parent <code>tr</code>
@@ -18287,10 +18278,10 @@
    <li>
 
     <p>If the <var title="">current cell</var> has a <code
-    title="">colspan</code> attribute, then <span title="rules for
-    parsing non-negative integers">parse that attribute's
-    value</span>, and let <var title="">colspan</var> be the
-    result.</p>
+    title="attr-tdth-colspan">colspan</code> attribute, then <span
+    title="rules for parsing non-negative integers">parse that
+    attribute's value</span>, and let <var title="">colspan</var> be
+    the result.</p>
 
     <p>If parsing that value failed, or returned zero, or if the
     attribute is absent, then let <var title="">colspan</var> be 1,
@@ -18301,7 +18292,7 @@
    <li>
 
     <p>If the <var title="">current cell</var> has a <code
-    title="">rowspan</code> attribute, then <span title="rules for
+    title="attr-tdth-rowspan">rowspan</code> attribute, then <span title="rules for
     parsing non-negative integers">parse that attribute's
     value</span>, and let <var title="">rowspan</var> be the
     result.</p>




More information about the Commit-Watchers mailing list