Re: A presentational img?

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