Re: aside and figure elements

hi bruce,

> Doesn't the fact that there is an <img> element expose the existence of the
> element, regardless of its attributes?

using alt="" is a convention for saying this image should be hidden
from AT users. the HTML5 spec currently codifies this
"img element whose alt attribute's value is empty  = presentation role"
source: http://dev.w3.org/html5/spec/content-models.html#annotations-for-assistive-technology-products-aria

what the aria role="presentation" does is remove the img from the
accessibility tree, so it is not exposed as an image via the
accessibility API.

In regards to your 2nd example:

> <figure>
> <img src=ceo.jpg>
> <video src=ceo.webm></video>
> <figcaption>Brian Slick, CEO of Blammo Corp, pushes the
> envelope</figcaption>
> </figure>

the figcaption content would be the accessible name for both the video
and the img

so an AT user may hear:
"Graphic: Brian Slick, CEO of Blammo Corp, pushes the envelope. Video:
Brian Slick, CEO of Blammo Corp, pushes the envelope"

in cases where ther are multiple objects in a figure then the
<figcaption> acts like a <legend> in a <fieldset>, as a group label

regards
Stevef

On 7 June 2010 15:35, Bruce Lawson <brucel@opera.com> wrote:
> On Mon, 07 Jun 2010 15:19:09 +0100, Steven Faulkner
> <faulkner.steve@gmail.com> wrote:
>
>> hi bruce,
>>
>> <figure>
>> <img src=ceo.jpg alt="">
>> <figcaption>Brian Slick, CEO of Blammo Corp, leveraging a
>> synergy</figcaption>
>> </figure>
>>
>>> seems entirely accessible (?)
>>
>> the issue i see with this is that using alt="" says the image can be
>> safely ignored. A caption is a label for something so the presence of
>> the image needs to be exposed.
>
> Doesn't the fact that there is an <img> element expose the existence of the
> element, regardless of its attributes?
>
> Or maybe it's just that I have a pavlovian mistrust of images with no alt
> attribute, so I automatically wanted to put empty alt on the image.
>
> What about
>
> <figure>
> <img src=ceo.jpg>
> <video src=ceo.webm></video>
> <figcaption>Brian Slick, CEO of Blammo Corp, pushes the
> envelope</figcaption>
> </figure>
>
> My point being that the caption is for both the image and the video, and is
> not tied exclusively to the image
>
>
> --
> Hang loose and stay groovy,
>
> Bruce Lawson
> Web Evangelist
> www.opera.com (work)
> www.brucelawson.co.uk (personal)
> www.twitter.com/brucel
> Pre-order my HTML5 book www.introducinghtml5.com
>



-- 
with regards

Steve Faulkner
Technical Director - TPG Europe
Director - Web Accessibility Tools Consortium

www.paciellogroup.com | www.wat-c.org
Web Accessibility Toolbar -
http://www.paciellogroup.com/resources/wat-ie-about.html

Received on Monday, 7 June 2010 14:52:24 UTC