Re: headers attribute

On Mon, 4 Jun 2007, Thomas Broyer wrote:
> 
> 2007/6/4, Leif Halvard Silli:
> > 
> > And does anyone know what happens if I put SCOPE on a TH within the 
> > THEAD element. And then add SCOPE to the correpsonding TH in same 
> > column in the TFOOT element, in HTML5 (or in HTML4)? A cell in this 
> > column would then be scoped from top and from bottom. In the code, it 
> > would come after the SCOPE in the THEAD.
> 
> HTML5 defines scope= in terms of "slots". If you put <tfoot> before 
> <tbody> in the <table>, then all your data cells will be associated with 
> header cells in both <thead> and <tfoot>. On the other hand, if you put 
> <tfoot> after <tbody>s, then you data cells will be associated with 
> header cells only in <thead>, and header cells in <tfoot> won't be 
> column headers of any data cells.
> 
> At least that's how I read the algorithms with the "Processing model" 
> section 
> <http://www.whatwg.org/specs/web-apps/current-work/multipage/section-tabular.html#processing>

Oops, yeah, that algorithm should move <tfoot> blocks to the end of the 
table. That's a bug. Assume that it is done. I'll fix it when I next work 
on the table section.

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

Received on Monday, 4 June 2007 21:52:19 UTC