W3C home > Mailing lists > Public > public-html-a11y@w3.org > September 2010

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 11 Sep 2010 21:29:05 +0000
To: public-html-a11y@w3.org
Message-Id: <E1OuXdB-0000Yw-G0@jessica.w3.org>

--- 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 on the CC list for the bug.
Received on Saturday, 11 September 2010 21:29:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:55:44 UTC