W3C home > Mailing lists > Public > wai-xtech@w3.org > August 2010

RE: role="presentation" on an image

From: Richards, Jan <jrichards@ocad.ca>
Date: Mon, 23 Aug 2010 10:35:02 -0400
To: Steven Faulkner <faulkner.steve@gmail.com>, David Bolter <david.bolter@gmail.com>
CC: W3C WAI-XTECH <wai-xtech@w3.org>
Message-ID: <F2C77FB59A1A4840A01EF5F59B1826E208ED8A181D@ocadmail.ocad.ca>
Hi Steve,

The issue is really what to do with the conflicting semantics. Role=Presentation implies the image is decorative and can be ignored, while alt="home page" implies the image is functional and should have alt text.

I suggest a heuristic that errs on the side of functional and disregards the role=Presentation if alt (or labelled-by or described-by) is present.


(Mr) Jan Richards, M.Sc.
jrichards@ocad.ca | 416-977-6000 ext. 3957 | fax: 416-977-9844
Inclusive Design Research Centre (IDRC) | http://inclusivedesign.ca/
Faculty of Design | OCAD University

From: wai-xtech-request@w3.org [mailto:wai-xtech-request@w3.org] On Behalf Of Steven Faulkner
Sent: August 23, 2010 10:28 AM
To: David Bolter
Subject: Re: role="presentation" on an image

hi dave,

there is no ARIA role="label"
there is an aria-label property.

On 23 August 2010 15:23, David Bolter <david.bolter@gmail.com<mailto:david.bolter@gmail.com>> wrote:
Hi Steve,

What about putting role="label" on the image, and adding an aria-labelledby relation?


On 23/08/10 7:59 AM, Steven Faulkner wrote:
Hi all,
If an image has a role=presentation and a non empty alt, shouldn't the alt text be passed to AT?


<a href="home.html"><img src="home.gif" alt="home page"></a>

currently this typically results in a screen reader announcing:

"link graphic home page"

when the presenece of the role information seems less than useful in context.

if role="presentation" allaowed the text "content" of the image object to be passed to AT then

<a href="home.html"><img src="home.gif" alt="home page" role="presentation"></a>

would result in the follwoing being announced:

"link home page"

currently this does not work as adding role="presentation" removes the image form the browsers accessible tree.

with regards

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

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

with regards

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

www.paciellogroup.com<http://www.paciellogroup.com> | www.wat-c.org<http://www.wat-c.org>
Web Accessibility Toolbar - http://www.paciellogroup.com/resources/wat-ie-about.html
Received on Monday, 23 August 2010 14:35:28 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:25:29 UTC