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

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

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 3 Jul 2007 00:57:55 +0000 (UTC)
To: Ben Boyle <benjamins.boyle@gmail.com>
Cc: Andrew Ramsden <andrew@irama.org>, Andrew Sidwell <takkaria@gmail.com>, aurélien levy <aurelien.levy@free.fr>, public-html@w3.org
Message-ID: <Pine.LNX.4.64.0707030056270.32200@dhalsim.dreamhost.com>

On Mon, 2 Jul 2007, Ben Boyle wrote:
> 
> I have a use case for this, from a while back where I found it
> difficult to apply the hCard microformat to content marked up with DL
> [1]
> 
> Sample HTML:
> ...
> <di class="tel">
>  <dt class="type">Fax</dt>
>  <dd class="value">#### ####</dd>
> </di>
> ...
> 
>
> Take away the <di> and it becomes necessary to use all kinds of 
> redundant tags (or as I was told on the microformats wiki, "don't use 
> definition lists in this manner".)
>
> ...
> <dt>Fax</dt>
> <dd class="tel"><span class="type">Fax</span><span class="value">####
> ####</span</dd>
> ...
> 
> That's my use case. I never said it was great :)

I think it's a fine use case, but I don't think it needs any changes to 
HTML. Why can't the microformats parsers just be defined such that they 
respect the semantics of a <dl>, and allow the use of a class on <dt> to 
indicate something about the associated <dd>s?

Isn't the whole point of microformats to leverage the semantics of HTML?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 3 July 2007 00:58:07 GMT

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