W3C home > Mailing lists > Public > www-style@w3.org > December 2009

Re: Request for ::di pseudoelement

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 22 Dec 2009 10:55:15 -0600
Message-ID: <dd0fbad0912220855g138b0060hb510a586878853ae@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: www-style list <www-style@w3.org>
On Mon, Dec 21, 2009 at 8:58 PM, fantasai <fantasai.lists@inkedblade.net> wrote:
> Tab Atkins Jr. wrote:
>>
>> Well, I find myself once again ripping out a <dl> and replacing it
>> with a <ul> with headers in the <li>s, because there's no grouping
>> element around <dt>s and <dd>s.  There's a perennial request for a
>> <di> element, but that's not really the correct place to solve the
>> problem - HTML has no need for any additional help in grouping the
>> dt/dd elements, as the grouping is well-defined in the spec.  This is
>> purely a styling issue, and a common one for me.
>
> I consider this a markup issue, not a styling one. I should be able
> to assign classes and IDs to a definition group, shift it around in
> the DOM without juggling multiple elements, target it with a URL
> fragment, and, yes, style it as an element and key off other styling
> from that structure. The fact that I can programmatically determine
> where the <di> tags should go doesn't mean the element isn't lacking.

Ah, thanks, those are good arguments.  I've got a bit of a
back-and-forth with Hixie on the matter, and this'll help.

~TJ
Received on Tuesday, 22 December 2009 16:55:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 03:47:12 GMT