Re: Data Table Collections (Research)

2007-09-08 19:05:12 +0200 "Anne van Kesteren" <annevk@opera.com>:
> On Sat, 08 Sep 2007 16:15:02 +0200, Leif Halvard Silli
> <lhs@malform.no>:

[ ... interpreting the HTML4 algorithm ... ]
>> HTML4 basic algorithm? That algorithm says «The search in a given
>> direction stops when the edge of the table is reached or when a data
>> cell is found after a header cell.» So why, then, does the Table
>> Inspecor include Day 1 as header for the data cells under Day 2 -
>> what is it based on?
>
> That does seem like a bug, indeed. However, the algorithm in HTML4
> doesn't seem to take headers found in <thead> into account which
> would mean you'd have to add scope= there if you have subheadings as
> in my table. 

Yes, this seems to be a correct interpretation of the further consequences of this ...

> I suppose there could be special rules for <thead> or
> if there is no <thead> the first row of the table (if that contains
> header cells). Probably need to study more tables to see what the
> implications are.

Yes, THEAD and TFOOT  should always be available. I think Rob has allready said this. (After all, HTML4 intend THEAD/TFOOT to always available in graphical UAs and on print - and it also forespeak that e.g @headers could be used as a CSS selector - and thus, this is how it should have been, I think. I guess one could claim that it is a «bug» in the basic HTML4 algorithm itself that it doesn't mention the cells of THEAD and TFOOT as part of the algorithm.)
	
Btw, the TABLE Inspector has another bug in that it doesn't interpret the SCOPE algorithm of HTML4 correctly when it is used on TD-cells. HTML4 e.g. says: «Note the use of the scope attribute with the "row" value. Although the first cell in each row contains data, not header information, the scope attribute makes the data cell behave like a row header cell.» And, perhaps related: if you test a table that uses headers="" to link from one TD cell to another TD-cell, then the Table Tool gets and exceptions.KeyError. I might also mention the @axis, which shall make the TD be interpreted as a TH cell in the basic algorithm of HTML4.
-- 
leif halvard silli

Received on Sunday, 9 September 2007 03:35:17 UTC