Re: aside and figure elements

Bruce Lawson, Mon, 07 Jun 2010 15:05:32 +0100:
> On Mon, 07 Jun 2010 14:42:17 +0100, Laura Carlson 
> <laura.lee.carlson@gmail.com> wrote:
> 
>>> # decorative images should not be allowed as content of a <figure>
>>> element as the HTML5 semantics imply that the content of the figure
>>> should be meaningful, so no <img alt="">
>>> # when a figure has a <figcaption> the content of the <figcaption>
>>> should act as the accessible name for the image(s) inside the <figure>
>>> if the image(s) do not have a text alternative provided using the alt
>>> attribute.
> 
> Sounds sensible to me. But this couls be misinterpreted as 
> contradictory. For example.
> 
> <figure>
> <img src=ceo.jpg alt="">
> <figcaption>Brian Slick, CEO of Blammo Corp, leveraging a 
> synergy</figcaption>
> </figure>
> 
> seems entirely accessible (?) and fits in with your first bullet. But 
> a designer might be troubled by the first bullet which says no <img 
> alt=""> and write
> 
> 
> <figure>
> <img src=ceo.jpg alt="Brian Slick, CEO of Blammo Corp, leveraging a 
> synergy">
> <figcaption>Brian Slick, CEO of Blammo Corp, leveraging a 
> synergy</figcaption>
> </figure>
> 
> which is "too much accessibility".

it is duplicate content. How about

<figure role="img" >
<img src=ceo.jpg alt="Description below." role="presentation" >
<summary>Brian Slick, CEO of Blammo Corp, leveraging a synergy</summary>
</figure>

Or may be the infamous solution of *dropping* the alt in order to show 
that image really is significant, would be the backward compatible 
solution? Note the combination of role="presentation" and no alt:

<figure role="img" >
<summary>Brian Slick, CEO of Blammo Corp, leveraging a synergy</summary>
<img src=ceo.jpg role="presentation" >
</figure>

Yet another option could be to wrap the <figure> in an object, as a 
legacy way to make legacy UAs aware that the whole thing is an image:

<object><figure role="img" >
<summary>Brian Slick, CEO of Blammo Corp, leveraging a synergy</summary>
<img src=ceo.jpg alt="" role="presentation" >
</figure></object>
-- 
leif halvard silli

Received on Monday, 7 June 2010 15:30:22 UTC