W3C home > Mailing lists > Public > wai-xtech@w3.org > May 2011

Re: A presentational img?

From: James Craig <jcraig@apple.com>
Date: Tue, 10 May 2011 14:22:11 -0700
Cc: W3C WAI-XTECH <wai-xtech@w3.org>
Message-id: <C008C530-28FF-443B-B1B5-A39F6D2E4E09@apple.com>
To: Steve Faulkner <faulkner.steve@gmail.com>
On May 10, 2011, at 2:13 PM, Steve Faulkner wrote:

> is <img> being special cased here or should a title on an element with role=presentation mean that role=presentaion is overriden on the element?

<img> is not being special-cased as far as I know. An explicit role="presentation" would take precedence unless the element were focusable. 

From: http://www.w3.org/TR/wai-aria/complete#presentation
> If an element with a role of presentation is focusable, user agents MUST ignore the normal effect of the role and expose the element with implicit native semantics, in order to ensure that the element is both understandable and operable.

For example:

Not exposed (presentational with no descendants):
<img role="presentation" aria-label="foo" alt="bar" title="baz">

Exposed as "foo, image":
<img tabindex="0" role="presentation" aria-label="foo" alt="bar" title="baz">
<img tabindex="0" role="presentation" alt="foo" title="bar">
<img tabindex="0" role="presentation" alt="" title="foo">
<img tabindex="0" role="presentation" title="foo">
Received on Tuesday, 10 May 2011 21:22:40 UTC

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