W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2012

Re: [whatwg] Suggest making <dt> and <dd> valid in <ol>

From: Leif H Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Sun, 15 Jul 2012 19:51:49 +0200
To: whatwg@lists.whatwg.org
Message-ID: <6167970357.1026849109@xn--mlform-iua.no>
Cc: ian.html@gmail.com
Sat, 14 Jul 2012 23:53:32 +0800, from Ian Yang

>Okay, it seems that one of the ideas I mentioned in my original email 
> needs
to be revamped.
>
>I was saying that using general heading (<H1>) and paragraph (<p>) loses
the meaning of "definition term" and "definition description", but I didn't 

>realize that using <ol> loses the meaning of "definition list". That is,
the following code is, in fact, improper:
>
><!-- The following code is improper as it loses the meaning of "definition
list". -->
><ol>
>    <li>
>        <dt></dt>
>        <dd></dd>
>    </li>
>    <li>
>        <dt></dt>
>        <dd></dd>
>    </li>
>    <li>
>        <dt></dt>
>        <dd></dd>
>    </li>
></ol>

An XOXO list should solve this:

http://microformats.org/wiki/xoxo#Properties_of_Outline_Items

Or just add a dl wrapper around the dt/dd elements in your code above.
--
Leif H Silli 
Received on Sunday, 15 July 2012 17:53:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 30 January 2013 18:48:09 GMT