[whatwg] List captions

Andy Mabbett wrote:
> How often do we see something like:
> 
>         <p>Animals:</p>
>         <ul>
>           <li>Cat</li>
>           <li>Dog</li>
>           <li>Horse</li>
>           <li>Cow</li>
>         </ul>
> 
> This would be more meaningful as:
> 
>         <ul caption="Animals">
>           <li>Cat</li>
>           <li>Dog</li>
>           <li>Horse</li>
>           <li>Cow</li>
>         </ul>
> 

No, the caption should be displayed to all users. That means it needs to 
be element content, not an attribute value. Just maybe

         <ul>
           <caption>Animals</caption>
           <li>Cat</li>
           <li>Dog</li>
           <li>Horse</li>
           <li>Cow</li>
         </ul>



but definitely not

         <ul caption="Animals">
           <li>Cat</li>
           <li>Dog</li>
           <li>Horse</li>
           <li>Cow</li>
         </ul>




-- 
?Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/

Received on Friday, 6 April 2007 11:24:39 UTC