W3C home > Mailing lists > Public > wai-xtech@w3.org > April 2012

Re: Alternative to @aria-describedAT: <a role=img>

From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
Date: Tue, 10 Apr 2012 02:43:20 +0200
To: wai-xtech <wai-xtech@w3.org>, Alexander Surkov <surkov.alexander@gmail.com>
Cc: Steve Faulkner <faulkner.steve@gmail.com>, Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Message-ID: <20120410024320616593.55cfcbf3@xn--mlform-iua.no>
Ah ... another correction + two additional comments:

Leif Halvard Silli, Tue, 10 Apr 2012 00:05:27 +0200:
> However, my point was that if you do <a role=presentation><img></a>, 
> the sighted will perceive the image as both a link and image, while the 
> AT user will not even perceive it: The <a> will not be perceived as 
> link and the <img> will not be perceived as anything. 

So that was wrong: <a role=presentation><img></a> will be perceived by 
the AT user as an image. Else, I was correct.

But to deviate from the correction: The AT user will not perceive any 
difference between <a role=presentation><img></a> and <a 
role=img><img></a>. Hence, why the first thing is permitted while the 
other thing is not, makes little sense.

Regarding focus, then there is an interesting difference between IE and 
the other browsers. Consider this markup + CSS - and note the @tabindex 
on the image:
   <style>a:active + a{background:lime}</style>
<a href=link><img tabindex=0 src=i alt=OMG></a><a href=longdesc>link</a>

Now, if you you make context menu click on the combination of the link 
and the image, then the parallel link will *not* be highlighted. 
Apparently because Internet Explorer thinks that it is the <img> that 
has focus.
-- 
Leif H Silli
Received on Tuesday, 10 April 2012 00:43:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 27 April 2012 13:16:16 GMT