[html5] r5434 - [ac] (2) Allow <td> in <thead> Fixing http://www.w3.org/Bugs/Public/show_bug.cgi [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Sep 7 17:33:53 PDT 2010
Author: ianh
Date: 2010-09-07 17:33:51 -0700 (Tue, 07 Sep 2010)
New Revision: 5434
Modified:
complete.html
index
source
Log:
[ac] (2) Allow <td> in <thead>
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10147
Modified: complete.html
===================================================================
--- complete.html 2010-09-08 00:05:54 UTC (rev 5433)
+++ complete.html 2010-09-08 00:33:51 UTC (rev 5434)
@@ -34767,7 +34767,46 @@
</div>
+ <div class=example>
+ <p>This example shows a <code><a href=#the-thead-element>thead</a></code> element being used.
+ Notice the use of both <code><a href=#the-th-element>th</a></code> and <code><a href=#the-td-element>td</a></code> elements
+ in the <code><a href=#the-thead-element>thead</a></code> element: the first row is the headers,
+ and the second row is an explanation of how to fill in the
+ table.</p>
+
+ <pre><table>
+ <caption> School auction sign-up sheet </caption>
+<strong> <thead>
+ <tr>
+ <th><label for=e1>Name</label>
+ <th><label for=e2>Product</label>
+ <th><label for=e3>Picture</label>
+ <th><label for=e4>Price</label>
+ <tr>
+ <td>Your name here
+ <td>What are you selling?
+ <td>Link to a picture
+ <td>Your reserve price
+</strong> <tbody>
+ <tr>
+ <td>Ms Danus
+ <td>Doughnuts
+ <td><img src="http://example.com/mydoughnuts.png" title="Doughnuts from Ms Danus">
+ <td>$45
+ <tr>
+ <td><input id=e1 type=text name=who required form=f>
+ <td><input id=e2 type=text name=what required form=f>
+ <td><input id=e3 type=url name=pic form=f>
+ <td><input id=e4 type=number step=0.01 min=0 value=0 required form=f>
+</table>
+<form id=f action="/auction.cgi">
+ <input type=button name=add value="Submit">
+</form></pre>
+
+ </div>
+
+
<h4 id=the-tfoot-element><span class=secno>4.9.7 </span>The <dfn><code>tfoot</code></dfn> element</h4>
<dl class=element><dt>Categories</dt>
@@ -34816,8 +34855,7 @@
elements, but only if there are no <code><a href=#the-tbody-element>tbody</a></code> elements that
are children of the <code><a href=#the-table-element>table</a></code> element.</dd>
<dt>Content model:</dt>
- <dd>When the parent node is a <code><a href=#the-thead-element>thead</a></code> element: Zero or more <code><a href=#the-th-element>th</a></code> elements</dd>
- <dd>Otherwise: Zero or more <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> elements</dd>
+ <dd>Zero or more <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> elements</dd>
<dt>Content attributes:</dt>
<dd><a href=#global-attributes>Global attributes</a></dd>
<dt>DOM interface:</dt>
Modified: index
===================================================================
--- index 2010-09-08 00:05:54 UTC (rev 5433)
+++ index 2010-09-08 00:33:51 UTC (rev 5434)
@@ -34747,7 +34747,46 @@
</div>
+ <div class=example>
+ <p>This example shows a <code><a href=#the-thead-element>thead</a></code> element being used.
+ Notice the use of both <code><a href=#the-th-element>th</a></code> and <code><a href=#the-td-element>td</a></code> elements
+ in the <code><a href=#the-thead-element>thead</a></code> element: the first row is the headers,
+ and the second row is an explanation of how to fill in the
+ table.</p>
+
+ <pre><table>
+ <caption> School auction sign-up sheet </caption>
+<strong> <thead>
+ <tr>
+ <th><label for=e1>Name</label>
+ <th><label for=e2>Product</label>
+ <th><label for=e3>Picture</label>
+ <th><label for=e4>Price</label>
+ <tr>
+ <td>Your name here
+ <td>What are you selling?
+ <td>Link to a picture
+ <td>Your reserve price
+</strong> <tbody>
+ <tr>
+ <td>Ms Danus
+ <td>Doughnuts
+ <td><img src="http://example.com/mydoughnuts.png" title="Doughnuts from Ms Danus">
+ <td>$45
+ <tr>
+ <td><input id=e1 type=text name=who required form=f>
+ <td><input id=e2 type=text name=what required form=f>
+ <td><input id=e3 type=url name=pic form=f>
+ <td><input id=e4 type=number step=0.01 min=0 value=0 required form=f>
+</table>
+<form id=f action="/auction.cgi">
+ <input type=button name=add value="Submit">
+</form></pre>
+
+ </div>
+
+
<h4 id=the-tfoot-element><span class=secno>4.9.7 </span>The <dfn><code>tfoot</code></dfn> element</h4>
<dl class=element><dt>Categories</dt>
@@ -34796,8 +34835,7 @@
elements, but only if there are no <code><a href=#the-tbody-element>tbody</a></code> elements that
are children of the <code><a href=#the-table-element>table</a></code> element.</dd>
<dt>Content model:</dt>
- <dd>When the parent node is a <code><a href=#the-thead-element>thead</a></code> element: Zero or more <code><a href=#the-th-element>th</a></code> elements</dd>
- <dd>Otherwise: Zero or more <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> elements</dd>
+ <dd>Zero or more <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code> elements</dd>
<dt>Content attributes:</dt>
<dd><a href=#global-attributes>Global attributes</a></dd>
<dt>DOM interface:</dt>
Modified: source
===================================================================
--- source 2010-09-08 00:05:54 UTC (rev 5433)
+++ source 2010-09-08 00:33:51 UTC (rev 5434)
@@ -38492,7 +38492,46 @@
</div>
+ <div class="example">
+ <p>This example shows a <code>thead</code> element being used.
+ Notice the use of both <code>th</code> and <code>td</code> elements
+ in the <code>thead</code> element: the first row is the headers,
+ and the second row is an explanation of how to fill in the
+ table.</p>
+
+ <pre><table>
+ <caption> School auction sign-up sheet </caption>
+<strong> <thead>
+ <tr>
+ <th><label for=e1>Name</label>
+ <th><label for=e2>Product</label>
+ <th><label for=e3>Picture</label>
+ <th><label for=e4>Price</label>
+ <tr>
+ <td>Your name here
+ <td>What are you selling?
+ <td>Link to a picture
+ <td>Your reserve price
+</strong> <tbody>
+ <tr>
+ <td>Ms Danus
+ <td>Doughnuts
+ <td><img src="http://example.com/mydoughnuts.png" title="Doughnuts from Ms Danus">
+ <td>$45
+ <tr>
+ <td><input id=e1 type=text name=who required form=f>
+ <td><input id=e2 type=text name=what required form=f>
+ <td><input id=e3 type=url name=pic form=f>
+ <td><input id=e4 type=number step=0.01 min=0 value=0 required form=f>
+</table>
+<form id=f action="/auction.cgi">
+ <input type=button name=add value="Submit">
+</form></pre>
+
+ </div>
+
+
<h4>The <dfn><code>tfoot</code></dfn> element</h4>
<dl class="element">
@@ -38547,8 +38586,7 @@
elements, but only if there are no <code>tbody</code> elements that
are children of the <code>table</code> element.</dd>
<dt>Content model:</dt>
- <dd>When the parent node is a <code>thead</code> element: Zero or more <code>th</code> elements</dd>
- <dd>Otherwise: Zero or more <code>td</code> or <code>th</code> elements</dd>
+ <dd>Zero or more <code>td</code> or <code>th</code> elements</dd>
<dt>Content attributes:</dt>
<dd><span>Global attributes</span></dd>
<dt>DOM interface:</dt>
More information about the Commit-Watchers
mailing list