[Bug 10481] Default role of <IMG> should be "img"

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10481





--- Comment #43 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>  2010-09-11 21:29:04 ---
(In reply to comment #31)

> In MSAA at least if an 
> <img> has an alt="" its role is graphic and its name=""
> <img> has no alt its role is graphic and its name=none[false]
> <img> has an alt="text" its role is graphic and its name="text"
> 
> so MSAA provides a differentiation between them

Here are the results from WebKit, according to Accessibility Inspector in Mac
OS X 10.5:

<img> has alt="<the empty string>" its role=AXWebarea, its
AXRoleDescription=HTML content
<img> has no alt its  role=AXimage, its AXRoleDescription=Image
<img> has alt="<space or text>" its role=AXimage, AXRoleDescription=Image

So Webkit looks consequently at the @alt: if the @alt contains if only space
character, then the <img> is considered an image. But if the content is the
empty string, then the users doesn't get any info whatsoever about the presence
of the iamge - it is conflated with the page. 

Steve, when you said alt="text", did you include alt="<space>" ?

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Saturday, 11 September 2010 21:29:06 UTC