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 26229 - role presentation on img element with alt="" in HTML5 spec VS WAI-ARIA in HTML document
Summary: role presentation on img element with alt="" in HTML5 spec VS WAI-ARIA in HTM...
Status: RESOLVED INVALID
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: a11y
Depends on:
Blocks:
 
Reported: 2014-06-28 10:41 UTC by aurelien.levy
Modified: 2015-06-19 14:49 UTC (History)
7 users (show)

See Also:


Attachments

Description aurelien.levy 2014-06-28 10:41:54 UTC
The current version of the HTML5 spec on the img element here http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#the-img-element state :

Allowed ARIA role attribute values:
presentation role only, for an img element whose alt attribute's value is empty (alt=""), otherwise any role value.

The using WAI-ARIA in HTML, state in the recommendation table :
img with alt="" | role=presentation | NO | NONE 

So if i follow the HTML5 I can use role="presentation" only if the img has an alt="", and if I follow the recommendation table I can't.

One of the document must be changed at least.

I propose to change the recomandation table to :

img without alt | role="img" | NO | Role: Any, Any global aria-* attributes and any aria-* attributes applicable to the allowed roles

img with alt="" | role="presentation" | NO | role=presentation 

img with alt="some text" | role="img" | NO | Role: Any, Any global aria-* attributes and any aria-* attributes applicable to the allowed roles Not role=presentation

Otherwise the spec must change to something like :

Allowed ARIA role attribute values:
any role value except role presentation. 
(except if you want to allow it on img element with alt="some text" witch sound strange for me)
Comment 1 aurelien.levy 2014-06-30 08:22:30 UTC
Depending on the choice, the 3.2.7.3 and 3.2.7.4 may need to be changed too.
http://www.w3.org/html/wg/drafts/html/master/dom.html#wai-aria
Comment 2 alexander surkov 2014-07-08 19:33:14 UTC
isn't it dupe of bug 26149?
Comment 3 Charles McCathieNevile 2015-06-19 14:49:19 UTC
Aurelien, you've read the logic the wrong way.

If you have alt="", the only role you are allowed is "presentation".

If you have any other value of alt, you can use any role, including "presentation".