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

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 UTC