Last Comment Bug 485181 - implicitly expose role="presentation" on img with no alt text (or title)?
: implicitly expose role="presentation" on img with no alt text (or title)?
Status: RESOLVED INVALID
: access
Product: Core
Classification: Components
Component: Disability Access APIs (show other bugs)
: unspecified
: All All
-- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: alexander :surkov
Mentors:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-03-25 07:30 PDT by David Bolter [:davidb]
Modified: 2009-05-08 13:36 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description User image David Bolter [:davidb] 2009-03-25 07:30:56 PDT
This is being talked about in w3c-wai-pf... adding this bug to keep it on radar. After discussing with Marco a bit on channel, I'm not sure we want to do this, but let's continue the discussion here. We can always WONTFIX later.
Comment 1 User image Marco Zehe (:MarcoZ) 2009-03-25 07:41:48 PDT
Currently the implementation is as follows (excluding ARIA logic):

1. If an alt text is present, and it is "", screen readers should treat the image as presentational/decorative.
2. If the alt text is something other than "", the text should become the image accessible's accName.
3. If alt is not present, but title is, use that as the accessible name.

So if the accName is NULL, screen readers should try to do their own magic. Only if the accName is "" should the screen reader truly ignore the image. This was done before role="presentation" came about.

Making all images that have no alt attribute go presentational would not only break the title logic, but also prevent screen readers from applying their own logic to something that might still be important, but poorly marked up.

I would prefer it if HTML 5 included a new attribute such as "presentational" or something shorter that would clearly state that an image is presentational. We could still apply our magic then for alt="", but this attribute would be available also for tables (brrrr) and other elements which might be mis-used for presentational purposes.

Just my 2 Cents.
Comment 2 User image David Bolter [:davidb] 2009-05-08 13:36:42 PDT
I agree Marco, closing invalid.

Note You need to log in before you can comment on or make changes to this bug.