W3C home > Mailing lists > Public > public-html@w3.org > July 2007

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

From: Andrew Ramsden <andrew@irama.org>
Date: Wed, 04 Jul 2007 08:11:48 +1000
Message-ID: <468AC9A4.3070600@irama.org>
To: Thomas Broyer <t.broyer@gmail.com>
CC: public-html@w3.org

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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:46 UTC