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

On Sat, 1 Aug 2009, Simon Pieters wrote:
> 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.

Well it disallows <td> at the moment. I don't suppose this particular edge 
case much matters.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Saturday, 1 August 2009 21:22:14 UTC