<?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>22773</bug_id>
          
          <creation_ts>2013-07-23 14:37:52 +0000</creation_ts>
          <short_desc>Captions in image alt attributes</short_desc>
          <delta_ts>2013-07-24 08:46:33 +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>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y</keywords>
          <priority>P2</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Reinier Kaper">rp.kaper</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>david100</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>lwatson</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</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>91138</commentid>
    <comment_count>0</comment_count>
    <who name="Reinier Kaper">rp.kaper</who>
    <bug_when>2013-07-23 14:37:52 +0000</bug_when>
    <thetext>In the following example in the draft (4.8.1.1.6), a caption is included in the image&apos;s alt attribute.

While this could be a legit use of the alt attribute, I feel it&apos;s more appropriate to store this information in a figure, with a corresponding figcaption. This way the alt attribute of the image can remain related to the images content and the figcaption would describe the purpose of the figure itself.

Thoughts?

Original:
&quot;&lt;p&gt;&lt;img src=&quot;figure1.gif&quot; alt=&quot;Figure 1. Distribution of Articles by Journal Category. 
  Pie chart: Language=68%, Education=14% and Science=18%.&quot;&gt;&lt;/p&gt;&quot;

Suggestion:
&quot;&lt;figure&gt;&lt;img src=&quot;figure1.gif&quot; alt=&quot;Pie chart: Language=60%, Education=14% and Science=18%.&quot;&gt;&lt;figcaptio&gt;Figure 1. Distribution of Articles by Journal Category.&lt;/figcaption&gt;&lt;/figure&gt;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91139</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-07-23 14:50:27 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; In the following example in the draft (4.8.1.1.6), a caption is included in
&gt; the image&apos;s alt attribute.
&gt; 
&gt; While this could be a legit use of the alt attribute, I feel it&apos;s more
&gt; appropriate to store this information in a figure, with a corresponding
&gt; figcaption. This way the alt attribute of the image can remain related to
&gt; the images content and the figcaption would describe the purpose of the
&gt; figure itself.
&gt; 
&gt; Thoughts?
&gt; 
&gt; Original:
&gt; &quot;&lt;p&gt;&lt;img src=&quot;figure1.gif&quot; alt=&quot;Figure 1. Distribution of Articles by
&gt; Journal Category. 
&gt;   Pie chart: Language=68%, Education=14% and Science=18%.&quot;&gt;&lt;/p&gt;&quot;
&gt; 
&gt; Suggestion:
&gt; &quot;&lt;figure&gt;&lt;img src=&quot;figure1.gif&quot; alt=&quot;Pie chart: Language=60%, Education=14%
&gt; and Science=18%.&quot;&gt;&lt;figcaptio&gt;Figure 1. Distribution of Articles by Journal
&gt; Category.&lt;/figcaption&gt;&lt;/figure&gt;&quot;

Hi Reiner, in this case the &apos;caption&apos; text is included in the image, so the text alternative in the alt attribute is reflecting that.

as it states in the example: &quot;Consider an image containing a pie chart and associated text. It is recommended wherever possible to provide any associated text as text, not an image of text. If this is not possible include the text in the text alternative along with the pertinent information conveyed in the image.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91140</commentid>
    <comment_count>2</comment_count>
    <who name="Reinier Kaper">rp.kaper</who>
    <bug_when>2013-07-23 14:53:00 +0000</bug_when>
    <thetext>Ah okay I see, it&apos;s just in the case where (for some reason) you can&apos;t provide the text equivalent.

Will close this issue then ;-) Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91142</commentid>
    <comment_count>3</comment_count>
    <who name="dmacdona">david100</who>
    <bug_when>2013-07-23 15:05:30 +0000</bug_when>
    <thetext>I think this suggestion might be a bit too perscriptive, and giving screen reader users two places to find the alt may be more steps than efficient for such a short alt..</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>