This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28751 - should img alt="" be mapped to role=presentation?
Summary: should img alt="" be mapped to role=presentation?
Status: RESOLVED NEEDSINFO
Alias: None
Product: ARIA
Classification: Unclassified
Component: HTML AAM (show other bugs)
Version: 1.1
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact:
URL:
Whiteboard:
Keywords:
: 26149 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-04 10:30 UTC by steve faulkner
Modified: 2018-05-03 21:11 UTC (History)
12 users (show)

See Also:


Attachments

Description steve faulkner 2015-06-04 10:30:34 UTC
+++ This bug was initially created as a clone of Bug #26149 +++

The HTML spec[1] requires an img element with an empty alt (alt="") to be mapped to role=presentation[3]


 Firefox/IE/Chrome does not currently implement this (webkit does)[2]

[1]http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-strong-native-semantics
[2]http://stevefaulkner.github.io/html-mapping-tests/
[3] effect of role=presentation http://www.w3.org/TR/wai-aria-implementation/#mapping_general

from bug opened on firefox there is pushback 
https://bugzilla.mozilla.org/show_bug.cgi?id=1027018
Comment 1 steve faulkner 2015-06-04 10:33:46 UTC
*** Bug 26149 has been marked as a duplicate of this bug. ***
Comment 2 alexander surkov 2015-06-04 11:19:27 UTC
imo that'd be confusing since img@alt="" and role="presentation have different mappings into accessibility API.
Comment 3 Marco Zehe 2015-06-04 13:13:20 UTC
The *intention* of img @alt="" is to mark an image as presentational. So I am, in principle, fine with mapping this to a role "presentation", effectively taking the image out of the accessible tree. The only thing I subjected to in the very old Mozilla bug 485181 was what happens if an img is present, but has no alt attribute at all. Those should *not* be marked as presentational, since they may be important, but subject to authoring error. Screen readers should be able to do something with these.
Comment 4 James Nurthen 2018-05-03 21:11:45 UTC
Steve - please move somewhere else if this is still an issue.