[uf-discuss] General Definition List Pattern
Brian Suda
brian.suda at gmail.com
Tue Oct 9 06:17:02 PDT 2007
On 10/9/07, Ben Ward <lists at ben-ward.co.uk> wrote:
> Idea that's been brewing in my mind for a little while of using the
> semantics of a definition list better in microformats.
--- we did talk about this a long long long time ago. So it might not
be in the archives. We discussed the idea of lists in general.
<ul class="category">
<li>item1</li>
<li>item2</li>
<li>item3</li>
</ul>
CATEGORIES:item1,item2,item3
This was dropped at the time, but i can't exactly remember why or find
a reference. X2V did support something similar but was backed-out.
-brian
> Take the following example from an hCard:
>
> <dl class="tel">
> <dt class="type">Home</dt>
> <dd class="value">01223 123 456</dd>
> <dt class="type">Fax</dt>
> <dd class="value">01223 123 457</dd>
> <dt class="type">Cell</dt>
> <dd class="value">07734 703 618</dd>
> </dl>
>
> You would still declare explicit class names on the DT and DD
> elements — no implicit classes should be applied based on it being a
> DT/DD — but the rule works as follows:
>
> In a DL with class "foo" , each set of DT+DD is treated as a separate
> parent "foo". So in the above example, the DL has class "tel", but it
> is parsed as if you have three standalone "tel" elements for each
> actual telephone number.
>
> We have something along these lines in our mark-up at the moment, so
> I'd obviously quite like to see if it's feasible for parsers to
> handle this.
>
> Thoughts?
> _______________________________________________
> microformats-discuss mailing list
> microformats-discuss at microformats.org
> http://microformats.org/mailman/listinfo/microformats-discuss
>
--
brian suda
http://suda.co.uk
More information about the microformats-discuss
mailing list