Re: Explanation on usage of 'td' vs 'th' within a thead

On Sat, 01 Aug 2009 11:14:20 +0200, Ian Hickson <ian@hixie.ch> wrote:

> On Wed, 22 Jul 2009, Seth Call wrote:
>>
>> I think you are right; td/th are options simply because of the content
>> model of tr.  I'd hope, though, that if there is no reason to use td
>> within a thead, that the spec could indicate that by adding a
>> restrictive condition to the tr content model when in a thead.
>
> After examining a whole bunch of tables, I've come to the same
> conclusion, and have adjusted the spec accordingly.
>
> I expect we'll change this back, and allow <td> in <tr>, because I expect
> someone will find a table where it makes sense. If anyone can find a  
> table
> where it makes sense, I'll change it back.

The only case I can think of is an empty cell in the top-left when having  
both column and row headers. The spec doesn't say whether to use td or th  
for such cells, and I've seen both being used in the wild.

-- 
Simon Pieters
Opera Software

Received on Saturday, 1 August 2009 10:43:07 UTC