<br><br>Sent from my HTC on the Now Network from Sprint!<br><br>----- Reply message -----<br>From: "Jukka K. Korpela" <jukka.k.korpela@kolumbus.fi><br>Date: Tue, Apr 5, 2011 3:51 am<br>Subject: [html5] td and th<br>To: <help@lists.whatwg.org><br><br>Luis-Miguel Rodríguez Rojas wrote:<br><br>> Why does the <th> element [...] have a Phrasing content model [...]<br>> whilst the <td>element [...] have a Flow content model [...]?<br><br>I had not noticed this change (from HTML 4.01 and its predecessors), but I <br>think it is rather natural on semantic grounds. A table header cell contains <br>header information for a column or a row, and header-like elements are <br>generally just text and text-level markup (cf. to <h1> and <caption>, for <br>example). A data cell may contain just about anything, such as text <br>paragraphs, lists, or inner tables, even in a table that represents tabular <br>data (which is a much wider concept than "numeric table").<br><br>Thus, the stricter content model probably helps to detect accidental use of <br><th> where <td> should be used, as well as markup based on misunderstanding <br>of HTML semantics - assuming, of course, that the author uses suitable <br>software to check the markup.<br><br>The only potential objection that I can imagine for now is that a table <br>header might reasonably act as a tool for sorting or otherwise modifying the <br>data in the table or its rendering. Typically this means just making the <br>header content a link so that e.g. clicking on a particular column header <br>sorts the table so that the column appears in alphabetic or numeric order, <br>and this can be arranged using just text-level markup there (whether we use <br>client-side, server-side, or combined implementation of the operation). But <br>would it be possible that someone reasonably wanted to use a _form_ in a <br>table header cell? I mean a form where the user selects a sorting criterion, <br>for example. Perhaps in the simplest case, the form might consist of a <br><select> element and (at least when scripting is disabled) a submit button - <br>but to make it work robustly, with a server-side backup, it would need to be <br>a <form>.<br><br>-- <br>Yucca, <a href="http://www.cs.tut.fi/~jkorpela">http://www.cs.tut.fi/~jkorpela</a>/ <br><br>_______________________________________________<br>Help mailing list<br>Help@lists.whatwg.org<br><a href="http://lists.whatwg.org/listinfo.cgi/help-whatwg.org">http://lists.whatwg.org/listinfo.cgi/help-whatwg.org</a><br><br><br>