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: Tue, 03 Jul 2007 23:41:05 +1000
Message-ID: <468A51F1.3020504@irama.org>
To: Thomas Broyer <t.broyer@gmail.com>
CC: public-html@w3.org, Ben Boyle <benjamins.boyle@gmail.com>

 >> 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.


 > you'll have to support *both* DLs with DIs
 > (be they "implied" or not at parsing) and DLs without in your scripts
 > *and* stylesheets.

I agree with you here, but I don't think that's a reason to not have a 
di element.


I know you feel its redundant, but I think it adds clarity (even if only 
for the sake of authors who refuse to read the spec carefully - even for 
dumb authors like me ;) ).

Its probably about time we started to summarize much of this discussion 
on the wiki. (would this the appropriate node? 
http://esw.w3.org/topic/HTML/IssueDiElement)


Cheers,
Andrew Ramsden


Thomas Broyer wrote:
> 2007/7/3, Ben Boyle:
>>
>> On 7/3/07, Henri Sivonen <hsivonen@iki.fi> wrote:
>> > The <tbody> element is inferred by the HTML parser if the tags are
>> > absent.
>>
>> Hmm. Parsing is not my strong suit, forgive any misunderstandings ...
>>
>> I just did a test here, a simple HTML doc with a table and no <tbody> 
>> elements.
>> Then I applied some styles:
>> tr > td {
>>         border: 1px solid blue;
>> }
>>
>> tr > tbody > td {
>>         border: 1px solid red;
>> }
>>
>> The borders are blue (Firefox 2). There is no "implied tbody" (as I
>> understand it, as an author!)
> 
> You might have wanted to use table > tr and table > tbody > tr as 
> selectors...
> 
>> I also tested <di> and it did nothing...
>> couldn't access it for styling. No surprise, it's not in any current
>> spec.
> 
> That's wrong, I styled it successfully in Firefox 2, Opera 9.21 and
> Safari 3.0.2 for Windows (but not in IE 7, because it puts a pair DI
> and /DI –yes an element whose name starts with a slash– empty elements
> in the DOM).
> 
> See http://lists.w3.org/Archives/Public/public-html/2007Jul/0109.html
> (beware, the archives cuts the link to my experiments in the middle of
> the URI, you'll have to copy/paste it)
> 
>> Parsing aside, I believe my use case still relevant for a <di>
>> element.
> 
> The problem is not about parsing, it's about support of
> non-html5-aware browsers: you'll have to support *both* DLs with DIs
> (be they "implied" or not at parsing) and DLs without in your scripts
> *and* stylesheets.
> 
Received on Tuesday, 3 July 2007 13:41:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:02 GMT