Re: A presentational img?

On May 10, 2011, at 11:20 AM, Steve Faulkner wrote:

> hi james, just a point of clarification:
> 
> an <img> without alt is not mapped to role=presentation in HTML5
> 
> only <img alt="">

Okay good. Thanks for the clarification.

Even so, this is where the bug lies, correct?

<img src="contact.png" alt="" title="contact">
<img src="contact.png" alt="" aria-label="contact">

Perhaps the bug could be updated so that if was presentational if:
>> • the author explicitly provided a role of presentation on the img tag, <img role="presentation">
>> • the host language labeling mechanism (in this case @alt) equaled an empty string, *AND* the ARIA text alternative computation [1] equaled an empty string.

1. ARIA text alternative computation: http://www.w3.org/TR/wai-aria/complete#textalternativecomputation

Received on Tuesday, 10 May 2011 22:00:01 UTC