Re: [whatwg] List captions

2007-04-10 Thread Kevin Marks

On 4/6/07, Elliotte Harold [EMAIL PROTECTED] wrote:

Andy Mabbett wrote:
 How often do we see something like:

 pAnimals:/p
 ul
   liCat/li
   liDog/li
   liHorse/li
   liCow/li
 /ul

 This would be more meaningful as:

 ul caption=Animals
   liCat/li
   liDog/li
   liHorse/li
   liCow/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
   captionAnimals/caption
   liCat/li
   liDog/li
   liHorse/li
   liCow/li
 /ul


Seems to me that what you want semantically is:

dl
 dtAnimals/dt
 ddCat/dd
 ddDog/dd
 ddHorse/dd
 ddCow/dd
/dl

or maybe

dl
 dtAnimals/dt
 ddul
 liCat/li
 liDog/li
 liHorse/li
 liCow/li
 /ul/dd
/dl

if you're feeling XOXO-esque


Re: [whatwg] List captions

2007-04-07 Thread Edward O'Connor
Elliotte wrote:

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

 ul
 captionAnimals/caption
 liCat/li
 liDog/li
 liHorse/li
 liCow/li
 /ul

That should probably be legend, not caption, For the same reason
that figure uses legend and not caption.


Ted

-- 
Edward O'Connor
[EMAIL PROTECTED]

Ense petit placidam sub libertate quietem.



Re: [whatwg] List captions

2007-04-06 Thread Magnus Kristiansen
On Fri, 06 Apr 2007 14:31:58 +0200, Andy Mabbett  
[EMAIL PROTECTED] wrote:




How often do we see something like:

pAnimals:/p
ul
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

This would be more meaningful as:

ul caption=Animals
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

There could also be a summary attribute, as with tables.

Any interest?


We should do our best to avoid repeats of alt, title, and friends. A list  
header would go much better as a separate element, like caption is for  
tables. The resurrection of lh was proposed a few days ago on this very  
list, why not take a look at that thread?


--
Magnus Kristiansen
Don't worry; the Universe IS out to get you.


Re: [whatwg] List captions

2007-04-06 Thread Kristof Zelechovski
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2007-April/010728.html

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Andy Mabbett
Sent: Friday, April 06, 2007 2:32 PM
To: WHAT WG
Subject: [whatwg] List captions


How often do we see something like:

pAnimals:/p
ul
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

This would be more meaningful as:

ul caption=Animals
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

There could also be a summary attribute, as with tables.

Any interest?

-- 
Andy Mabbett
*  Say NO! to compulsory ID Cards:  http://www.no2id.net/
*  Free Our Data:  http://www.freeourdata.org.uk
*  Are you using Microformats, yet: http://microformats.org/ ?



Re: [whatwg] List captions

2007-04-06 Thread Andy Mabbett
In message [EMAIL PROTECTED], Magnus
Kristiansen [EMAIL PROTECTED] writes

On Fri, 06 Apr 2007 14:31:58 +0200, Andy Mabbett
[EMAIL PROTECTED] wrote:


 How often do we see something like:

 pAnimals:/p
 ul
   liCat/li
   liDog/li
   liHorse/li
   liCow/li
 /ul

 This would be more meaningful as:

 ul caption=Animals
   liCat/li
   liDog/li
   liHorse/li
   liCow/li
 /ul

 There could also be a summary attribute, as with tables.

 Any interest?

We should do our best to avoid repeats of alt, title, and friends.

Why?

A list  header would go much better as a separate element, like
caption is for  tables.

Like:
ul
  captionAnimals/caption (or lh, or whatever)
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

Yes, that would work, too.

The resurrection of lh was proposed a few days ago on this very
list, why not take a look at that thread?

Great minds think alike! ;-)

-- 
Andy Mabbett
*  Say NO! to compulsory ID Cards:  http://www.no2id.net/
*  Free Our Data:  http://www.freeourdata.org.uk
*  Are you using Microformats, yet: http://microformats.org/ ?


Re: [whatwg] List captions

2007-04-06 Thread Michel Fortin

Le 2007-04-06 à 10:27, Andy Mabbett a écrit :


ul
  captionAnimals/caption (or lh, or whatever)
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul


Personally, I can hardly see why such a markup is needed.

If your list is part of the main content you should be preceding it  
by a header the same way you would for a paragraph. If the list is  
for navigation, why not simply wrap it in a nav element alongside  
with a header? If the list is somewhat separate of the main content,  
it probably belongs, with the header, in an aside element. If the  
list is for some illustrative purpose, a case were like a table it  
needs a caption, why not improve the figure element to allow lists  
to be put inside it?


More visually, which case do you have that would not be covered by  
any of these markups?


h1Animalsh1
ul
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul


section
  h1Animalsh1
  ul
liCat/li
liDog/li
liHorse/li
liCow/li
  /ul
/section


nav
  h1Animalsh1
  ul
liCat/li !-- assuming you have some links here --
liDog/li
liHorse/li
liCow/li
  /ul
/nav


aside
  h1Animalsh1
  ul
liCat/li
liDog/li
liHorse/li
liCow/li
  /ul
/aside


figure
  legendAnimals/legend
  ul
liCat/li
liDog/li
liHorse/li
liCow/li
  /ul
/figure


I believe the markup should depend on what your list stands for. A  
list is not much unlike a paragraph: it's an enumeration formatted in  
a special way. So why can't we reuse the already existing structures?




Michel Fortin
[EMAIL PROTECTED]
http://www.michelf.com/




Re: [whatwg] List captions

2007-04-06 Thread Thomas Broyer

2007/4/6, Andy Mabbett:


We should do our best to avoid repeats of alt, title, and friends.

Why?


Styling, text extraction (a.k.a. tag-stripping)


A list  header would go much better as a separate element, like
caption is for  tables.

Like:
ul
  captionAnimals/caption (or lh, or whatever)
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

Yes, that would work, too.


Problem: not backwards compatible (w.r.t. styling)
See this page with different browsers:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0A%3Cbody%3E%0A%3Cstyle%20type%3D%22text/css%22%3Eul%20caption%20%7B%20text-decoration%3A%20underline%3B%20%7D%3C/style%3E%0A%3Cul%3E%3Clh%20style%3D%22color%3A%20green%22%3ECaption%3C/lh%3E%3Cli%3EItem%201

You can also try with lh, almost same results (much better in Firefox).
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C%21DOCTYPE%20html%3E%0D%0A%3Cbody%3E%0D%0A%3Cstyle%20type%3D%22text/css%22%3Eul%20lh%20%7B%20text-decoration%3A%20underline%3B%20%7D%3C/style%3E%0D%0A%3Cul%3E%3Clh%20style%3D%22color%3A%20green%22%3ECaption%3C/lh%3E%3Cli%3EItem%201

Better results with p, but not semantically a good choice.

Using an ul or ol nested inside a dl is not that bad after all...

--
Thomas Broyer


Re: [whatwg] List captions

2007-04-06 Thread Elliotte Harold

Andy Mabbett wrote:

How often do we see something like:

pAnimals:/p
ul
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul

This would be more meaningful as:

ul caption=Animals
  liCat/li
  liDog/li
  liHorse/li
  liCow/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
  captionAnimals/caption
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul



but definitely not

ul caption=Animals
  liCat/li
  liDog/li
  liHorse/li
  liCow/li
/ul




--
Elliotte Rusty Harold  [EMAIL PROTECTED]
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/