W3C home > Mailing lists > Public > public-html-comments@w3.org > August 2009

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

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 1 Aug 2009 21:21:34 +0000 (UTC)
To: Simon Pieters <simonp@opera.com>
Cc: Seth Call <sethcall@gmail.com>, Giovanni Campagna <scampa.giovanni@gmail.com>, public-html-comments@w3.org
Message-ID: <Pine.LNX.4.62.0908012121070.28566@hixie.dreamhostps.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 1 June 2011 00:14:00 GMT