<?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>26869</bug_id>
          
          <creation_ts>2014-09-20 00:09:08 +0000</creation_ts>
          <short_desc>alt text length</short_desc>
          <delta_ts>2016-02-23 11:35:15 +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>LC1 alt techniques (editor: Steven Faulkner)</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11ytf</keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Liam R E Quin">liam</reporter>
          <assigned_to name="Liam R E Quin">liam</assigned_to>
          <cc>chaals</cc>
    
    <cc>faulkner.steve</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>shane</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>111870</commentid>
    <comment_count>0</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2014-09-20 00:09:08 +0000</bug_when>
    <thetext>Add a note to make clear that ALT text may be truncated (at least visually) in the area that would be left by the image, had it been displayed, so that one cannoy rely on more than a few words being presented for the use cases of sighted people who are not loading images, or where images are unavailable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113182</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-10-15 09:20:23 +0000</bug_when>
    <thetext>see discussion on list:
http://lists.w3.org/Archives/Public/public-html-a11y/2014Oct/0065.html
http://lists.w3.org/Archives/Public/public-html-a11y/2014Oct/0071.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113183</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-10-15 09:26:32 +0000</bug_when>
    <thetext>the current text about alt text length which was agreed on 4 months ago:


&quot;How long should a text alternative be?

A text alternative for an image should be as long as it needs to be to adequately convey the information in the image, in the context the image is being used.
How long should an alt text be?

While there are no definitive right or wrong lengths for text alternatives provided using the img element&apos;s alt attribute, the general consensus is that if the text alternative is longer 30-50 words (2 to 3 sentences), it should not be considered a short text alternative and should not be presented using the alt attribute. Refer to the section - Graphical Representations: Charts, diagrams, graphs, maps, illustrations for example methods of providing longer text alternatives for images.
Note

A text alternative provided using the alt attribute is exposed to screen reader users as a text string, generally announced as a chunk, and cannot be structured into paragraphs or have other markup added to aid comprehension.&quot;
http://w3c.github.io/alt-techniques/#m5

How does the additional complication of this advice around the issue of alt text display in browsers help a developer to write good alt text?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113185</commentid>
    <comment_count>3</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-10-15 09:37:33 +0000</bug_when>
    <thetext>Should we, for example, be advising developers to modify the alt text length in the image in the test page http://codepen.io/stevef/debug/sJAKy because some browsers do not either display the text or truncate the text when images are disabled or the src is incorrect?

code:

&lt;img src=&quot;http://www.html5accessibility.com/images/cross.png&quot; alt=&quot;not supported&quot; height=&quot;16&quot; width=&quot;16&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113196</commentid>
    <comment_count>4</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-10-15 12:32:25 +0000</bug_when>
    <thetext>filed another bug on chrome https://code.google.com/p/chromium/issues/detail?id=423725&amp;thanks=423725&amp;ts=1413376182</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113198</commentid>
    <comment_count>5</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-10-15 12:41:50 +0000</bug_when>
    <thetext>bug filed on IE https://connect.microsoft.com/IE/feedbackdetail/view/1001812/alt-text-is-not-displayed-on-broken-images</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113223</commentid>
    <comment_count>6</comment_count>
    <who name="Liam R E Quin">liam</who>
    <bug_when>2014-10-15 17:48:56 +0000</bug_when>
    <thetext>My own feeling, coming to the document from the outside, is that a best practice document should explain that alt text might be truncated by browsers, or even dropped entirely, if the text doesn&apos;t fit in the space available for the image, so that authors should not rely on it being presented in full for all users when images are for any reason not rendered.

The HTML 5 spec doesn&apos;t seem to say clearly exactly what a browser should do, unfortunately, so it&apos;s not clear that any of the browsers are actually buggy, although since not displaying the attribute content at all is pretty unhelpful I agree it&apos;s worth filing a bug.

What do screen readers do in these cases?

I had added width and height attributes to a copy of one of the examples in the draft and found firefox wraps the alt text, which is useful, and fits it all for that particular example, but as you point out Chrome doesn&apos;t even try. (I&apos;m not able to try IE right now). Actually Firefox&apos;s behaviour depends on the DOCTYPE, so probably standards mode vs. quirks mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>117582</commentid>
    <comment_count>7</comment_count>
    <who name="Shane McCarron">shane</who>
    <bug_when>2015-01-29 17:29:43 +0000</bug_when>
    <thetext>Moved into LC1 component as per discussion in HTML A11Y Task Force on 29 January 2015</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>125222</commentid>
    <comment_count>8</comment_count>
    <who name="Charles McCathieNevile">chaals</who>
    <bug_when>2016-02-23 11:35:15 +0000</bug_when>
    <thetext>We believe that Liam will propose changes to HTML at some point, based on the work on the &quot;alt text guidance&quot; in the HTML a11y TF</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>