<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>26229</bug_id>
          
          <creation_ts>2014-06-28 10:41:54 +0000</creation_ts>
          <short_desc>role presentation on img element with alt=&quot;&quot; in HTML5 spec VS WAI-ARIA in HTML document</short_desc>
          <delta_ts>2015-06-19 14:49:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>aurelien.levy</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>chaals</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>surkov.alexander</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>108455</commentid>
    <comment_count>0</comment_count>
    <who name="">aurelien.levy</who>
    <bug_when>2014-06-28 10:41:54 +0000</bug_when>
    <thetext>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&apos;s value is empty (alt=&quot;&quot;), otherwise any role value.

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

So if i follow the HTML5 I can use role=&quot;presentation&quot; only if the img has an alt=&quot;&quot;, and if I follow the recommendation table I can&apos;t.

One of the document must be changed at least.

I propose to change the recomandation table to :

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

img with alt=&quot;&quot; | role=&quot;presentation&quot; | NO | role=presentation 

img with alt=&quot;some text&quot; | role=&quot;img&quot; | 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=&quot;some text&quot; witch sound strange for me)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108480</commentid>
    <comment_count>1</comment_count>
    <who name="">aurelien.levy</who>
    <bug_when>2014-06-30 08:22:30 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>108804</commentid>
    <comment_count>2</comment_count>
    <who name="alexander surkov">surkov.alexander</who>
    <bug_when>2014-07-08 19:33:14 +0000</bug_when>
    <thetext>isn&apos;t it dupe of bug 26149?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121233</commentid>
    <comment_count>3</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2015-06-19 14:49:19 +0000</bug_when>
    <thetext>Aurelien, you&apos;ve read the logic the wrong way.

If you have alt=&quot;&quot;, the only role you are allowed is &quot;presentation&quot;.

If you have any other value of alt, you can use any role, including &quot;presentation&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>