<?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>12587</bug_id>
          
          <creation_ts>2011-05-03 02:36:15 +0000</creation_ts>
          <short_desc>AT shouldn&apos;t see img@alt=&quot;&quot; and img@role=presentation as 100% synonyms</short_desc>
          <delta_ts>2016-04-07 15:37:06 +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>HTML a11y APIs (editor: Steve Faulkner, Cynthia Shelly)</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>http://www.w3.org/TR/html-aapi/#api-role</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11ytf</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Leif Halvard Silli">xn--mlform-iua</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>bhawkeslewis</cc>
    
    <cc>chaals</cc>
    
    <cc>laura.lee.carlson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-a11y</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>w3c</cc>
    
    <cc>xn--mlform-iua</cc>
          
          <qa_contact name="HTML a11y API spec bugbot">sideshowbarker+html-a11y-api</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47859</commentid>
    <comment_count>0</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-05-03 02:36:15 +0000</bug_when>
    <thetext>The HTML to Platform Accessibility APIs implementation guide requires AT to treat

    &lt;img alt=&quot;&quot; src=i&gt; 

as 100% the same as

    &lt;img role=presentation src=i &gt;

But such a change is likely to make many pages less accessible to AT users. Examples:

Example 1:  In this example, VoiceOver will contstruct a link text from the href URL.
&lt;a href=&quot;./&quot;&gt;
     &lt;img src=i role=presentation title=&quot;Lorem Ipsum&quot;&gt;
&lt;/a&gt;

Example 2: In this example, VoiceOVer will use @title as link text.
&lt;a href=&quot;./&quot;&gt;
     &lt;img src=i title=&quot;Lorem Ipsum&quot;&gt;
&lt;/a&gt;

Thus, as you can see, by making the empty img@alt=&quot;&quot; a synonym for img@role=presentation, the treatment of existing web pages will be affected. 

Another problem of seeing them as 100% synonyms is: who wins if both are present and @alt e.g. is non-empty? If they are not  100% synonyms, then it is easier to see why role=presentation wins.

Also, I believe there is a usecase for images with non-empty @alt text which nevertheless are presentational. (E.g. the @alt text could be purely decorational - to reflect that the image itself  is purely some decorational symbols. )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47862</commentid>
    <comment_count>1</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-05-03 11:18:26 +0000</bug_when>
    <thetext>Example from the wild: 

Mac OS X told to me to upgrade my printer today. This caused me to find that,
on Apple support pages, the link to call the Apple Support Express Lane is an 
IMG link with a @title attribute in combination with an empty @alt:

&lt;a href=&quot;[link]&quot;&gt;
   &lt;img src=&quot;http://images.apple.com/support/iknow/images/i_call_adv.png&quot; 
               alt=&quot;&quot; 
             title=&quot;Apple Support Express Lane&quot;&gt;
&lt;/a&gt;

See the page: http://support.apple.com/kb/HT3669</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47865</commentid>
    <comment_count>2</comment_count>
    <who name="Leif Halvard Silli">xn--mlform-iua</who>
    <bug_when>2011-05-03 13:01:31 +0000</bug_when>
    <thetext>Here is the approach which the &apos;HTML to Platform Accessibility APIs implementation guide&apos; should take:

1. The AT should first run an algoritm to *calculate* whether the IMG
     is presentational or non-presentational
2. If it is non-presentational, AT should select the best text substitute

When it comes to the algorithm to calculate whether IMG is presentational or not, then I have suggested how it should look in my &apos;Validity map for &lt;img&gt;&apos;:

http://lists.w3.org/Archives/Public/public-html/2011Mar/0750

Two examples from that algorithm:

* If IMG has non-empty @title, then AT should consider 
   the IMG as non-presentational,  regardless of @alt&apos;s value.
* Ditto if IMG has @aria-labelledby  - regardless of @alt&apos;s value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48441</commentid>
    <comment_count>3</comment_count>
    <who name="Martin Kliehm">w3c</who>
    <bug_when>2011-05-10 15:35:41 +0000</bug_when>
    <thetext>Bug-triage sub-team adding the a11yTF keyword because this issue is already discussed in the TF and related to ongoing work regarding @alt validation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125744</commentid>
    <comment_count>4</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2016-04-07 14:26:51 +0000</bug_when>
    <thetext>With disagreement on how role=presentation should be handled in various cases, on HTML bug triage we agreed that it makes sense to treat these two examples in the same way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125756</commentid>
    <comment_count>5</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2016-04-07 15:37:06 +0000</bug_when>
    <thetext>With disagreement on how role=presentation should be handled in various cases, on HTML bug triage we agreed that it makes sense to treat alt=&quot;&quot; and role=presentation in the same way.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>