Re: aside and figure elements

Bruce Lawson, Mon, 07 Jun 2010 20:55:59 +0100:
> On Mon, 07 Jun 2010 19:05:25 +0100, Laura Carlson 
> <laura.lee.carlson@gmail.com> wrote:
> 
>> Hi Bruce,
>> 
>>>> I couldn't accept that; it's throwing the baby out with the bath water.
>>>> I'd rather some ambiguity between aside and figure in edge cases than the
>>>> inability to have a video or a data table as an illustrative figure.
>> 
>> Hmmm. You said, "a video or a data table".  In the singular.  Is that
>> the key, Bruce? What do you think of restricting figure to a single
>> element as content to help simplify?
> 
> No - I think the example of one figure, multiple images in 
> http://html5doctor.com/the-figure-figcaption-elements/ is legitimate

In that example, you treat the 3 images as one thing. Thus, you could 
have done this:

<figure role="img" >
  <img src="/kookaburra.jpg" alt="Kooaburra">
  <img src="/pelican.jpg" alt="Pelican stood on the beach">
  <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">
  <figcaption>Australian Birds. From left to right, Kookburra, Pelican 
and Rainbow Lorikeet. Originals by <a 
href="http://www.flickr.com/photos/rclark/">Richard 
Clark</a></figcaption>
</figure>

Or this:

<figure role="img" >
  <div role="group">
    <img src="/kookaburra.jpg" alt="Kooaburra">
    <img src="/pelican.jpg" alt="Pelican stood on the beach">
    <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">
  </div>
  <figcaption>Australian Birds. From left to right, Kookburra, Pelican 
and Rainbow Lorikeet. Originals by <a 
href="http://www.flickr.com/photos/rclark/">Richard 
Clark</a></figcaption>
</figure>

Or like this:

<figure role="img" >
  <article>
     <img src="/kookaburra.jpg" alt="Kooaburra">
     <img src="/pelican.jpg" alt="Pelican stood on the beach">
     <img src="/lorikeet.jpg" alt="Cheeky looking Rainbow Lorikeet">
  </article>
  <figcaption>Australian Birds. From left to right, Kookburra, Pelican 
and Rainbow Lorikeet. Originals by <a 
href="http://www.flickr.com/photos/rclark/">Richard 
Clark</a></figcaption>
</figure>

PS: I have a filed bug 751 with Validator.nu: [1]

]]
Validator.nu doesn't see <figure role=img> as valid, despite lack of 
spec prohibition 
[[

[1] http://bugzilla.validator.nu/show_bug.cgi?id=751
-- 
leif halvard silli

Received on Monday, 7 June 2010 20:45:55 UTC