W3C home > Mailing lists > Public > public-html@w3.org > June 2010

Re: aside and figure elements

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Mon, 7 Jun 2010 22:44:46 +0200
To: Bruce Lawson <brucel@opera.com>
Cc: Laura Carlson <laura.lee.carlson@gmail.com>, "Tab Atkins Jr." <jackalmage@gmail.com>, Shelley Powers <shelleyp@burningbird.net>, Steven Faulkner <faulkner.steve@gmail.com>, HTML WG <public-html@w3.org>, HTML Accessibility Task Force <public-html-a11y@w3.org>
Message-ID: <20100607224446923883.840c98b2@xn--mlform-iua.no>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:17:09 GMT