- From: poot <cvsmail@w3.org>
- Date: Wed, 8 Sep 2010 09:41:14 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Allow <td> in <thead> (whatwg r5434) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.4334&r2=1.4335&f=h http://html5.org/tools/web-apps-tracker?from=5433&to=5434 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.4334 retrieving revision 1.4335 diff -u -d -r1.4334 -r1.4335 --- Overview.html 8 Sep 2010 00:06:00 -0000 1.4334 +++ Overview.html 8 Sep 2010 00:33:57 -0000 1.4335 @@ -24991,6 +24991,43 @@ <p>The <code><a href="#the-thead-element">thead</a></code> element takes part in the <a href="#table-model">table model</a>.</p> + </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> <dd>None.</dd> <dt>Contexts in which this element may be used:</dt> @@ -25030,8 +25067,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>
Received on Wednesday, 8 September 2010 00:34:41 UTC