Re: DI element [Re: html 5 and accessibility issue]

Thomas Broyer wrote:
> 2007/7/3, Andrew Ramsden:
>>  >> tr > tbody > td {
>>  >>         border: 1px solid red;
>>  >> }
>>  > You might have wanted to use table > tr and table > tbody > tr as
>>  > selectors...
>>
>> IE6 doesn't respect styling of tr elements so I think table > tbody > td
>> was probably fine.
> 
> IE6 doesn't support the child combinator either, so...

A very good point.

> But the point was that Rob was trying to style a table where a tbody
> were to be inserted/implied between a *tr* and a *td* rather than
> between a table and a tr.

Another good point :)

I put together some test cases using "table td" and "table tbody td":
<http://wg.irama.org/html/test/table/implicit-tbody.html>

... And indeed it was the second selector that always matched (in FF2). 
In fact viewing the generated source (DOM source), there was always a 
tbody inserted. And the same is true of other browsers tested (IE6, 
Opera9.2, Safari3.0.2).

You learn something every day :)


I might be missing something though. I can't see that it would it be a 
problem for UAs to treat di the same way?



Cheers,
Andrew Ramsden

Received on Tuesday, 3 July 2007 22:11:51 UTC