Re: A presentational img?

James Craig, Tue, 10 May 2011 12:05:33 -0700:
> 
> Hi Steve, what about an explicit alt="" inside a link?
> <a href="/path/about_us.html"><img src="contact.png" alt=""></a>

This is exactly the background for bug 12590.[1] Btw, JAWS does not 
ignore that link. It starts to repair be reading the @src and other 
stuff. Had there been a non-empty @title, then JAWS would have used the 
@title. An odd bug in JAWS, though, compared with the ARIA text 
alternative computation algorithm is that it doesn't look into @title 
when @alt contains only whitespace.

Sailesh Panchang, Tue, 10 May 2011 16:21:24 -0400:

> This needs visible anchor text or an alt.
> Sometimes both... like the alt maybe used to convey"- opens new window", "-
> External site", "-PDF file" or even state of link "-expanded"  

Yes, it does need that. And, clearly, HTML5 is right in saying that 
James' example MUST have a non-empty @alt. But the question at hand is 
whether an AT has a legitimate reason - or "right" - to simply ignore 
the IMG in James' example. According to the HTML5 specification as well 
as according to *some* statements by Steve as well as Richard [2] and 
Josh [3], AT should be allowed to do that ... 

[1] http://www.w3.org/Bugs/Public/show_bug.cgi?id=12590

[2] http://lists.w3.org/Archives/Public/wai-xtech/2011May/0014

[3] http://lists.w3.org/Archives/Public/wai-xtech/2011May/0017


Leif H Silli


> On May 10, 2011, at 11:58 AM, James Craig wrote:
> 
>> 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 20:56:20 UTC