<?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>20404</bug_id>
          
          <creation_ts>2012-12-15 18:11:46 +0000</creation_ts>
          <short_desc>more non conforming uses of title attribute in example code</short_desc>
          <delta_ts>2014-03-27 16:11:27 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>a11y, a11y_text-alt, CR</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="steve faulkner">faulkner.steve</reporter>
          <assigned_to name="steve faulkner">faulkner.steve</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>hans.hillen</cc>
    
    <cc>laura.lee.carlson</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>80242</commentid>
    <comment_count>0</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2012-12-15 18:11:46 +0000</bug_when>
    <thetext>The following examples in the spec include non conforming usesof the title attribute:


&quot;
Sometimes the entire point of the image is that a textual description is not available, and the user is to provide the description. For instance, the point of a CAPTCHA image is to see if the user can literally read the graphic. Here is one way to mark up a CAPTCHA (note the title attribute):

&lt;p&gt;&lt;label&gt;What does this image say?
&lt;img src=&quot;captcha.cgi?id=8934&quot; title=&quot;CAPTCHA&quot;&gt;
&lt;input type=text name=captcha&gt;&lt;/label&gt;
(If you cannot see the image, you can use an &lt;a
href=&quot;?audio&quot;&gt;audio&lt;/a&gt; test instead.)&lt;/p&gt;

Another example would be software that displays images and asks for alternative text precisely for the purpose of then writing a page with correct alternative text. Such a page could have a table of images, like this:

&lt;table&gt;
 &lt;thead&gt;
  &lt;tr&gt; &lt;th&gt; Image &lt;th&gt; Description
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt; &lt;img src=&quot;2421.png&quot; title=&quot;Image 640 by 100, filename &apos;banner.gif&apos;&quot;&gt;
   &lt;td&gt; &lt;input name=&quot;alt2421&quot;&gt;
  &lt;tr&gt;
   &lt;td&gt; &lt;img src=&quot;2422.png&quot; title=&quot;Image 200 by 480, filename &apos;ad3.gif&apos;&quot;&gt;
   &lt;td&gt; &lt;input name=&quot;alt2422&quot;&gt;
&lt;/table&gt;

Notice that even in this example, as much useful information as possible is still included in the title attribute.
&quot;

Suggest:

For the captcha example replace the current text and example code with the text and example code from:
http://dev.w3.org/html5/alt-techniques/#sec13


for the second example suggest:

&quot;Another example would be software that displays images and asks for alternative text precisely for the purpose of then writing a page with correct alternative text. Such a page could have a table of images, like this:

&lt;table&gt;
 &lt;thead&gt;
  &lt;tr&gt; &lt;th&gt; Image &lt;th&gt; Description
 &lt;tbody&gt;
  &lt;tr&gt;
   &lt;td&gt; &lt;figure&gt;
&lt;img src=&quot;2421.png&quot;&gt;
&lt;figcaption&gt;Image 640 by 100, filename &apos;banner.gif&apos;&lt;/figcaption&gt;
&lt;/figure&gt;

   &lt;td&gt; &lt;input name=&quot;alt2421&quot;&gt;
  &lt;tr&gt;
   &lt;td&gt; &lt;figure&gt;
&lt;img src=&quot;2422.png&quot;&gt;
&lt;figcaption&gt;Image 200 by 480, filename &apos;ad3.gif&apos;&lt;/figcaption&gt;
&lt;/figure&gt;
   &lt;td&gt; &lt;input name=&quot;alt2422&quot;&gt;
&lt;/table&gt;

Notice that even in this example, as much useful information as possible is still included in the ficaption element.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83690</commentid>
    <comment_count>1</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-02-25 23:47:09 +0000</bug_when>
    <thetext>EDITOR&apos;S RESPONSE: This is an Editor&apos;s Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Accepted
Change Description:captcha example already fixed in https://www.w3.org/Bugs/Public/show_bug.cgi?id=9216
replaced non conforming title attribute use with conforming figure/figcaption use.
refer to https://github.com/w3c/html/commit/687c1452d5208b2829dae34c042ae292b2a8d5ac</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103023</commentid>
    <comment_count>2</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2014-03-27 16:11:27 +0000</bug_when>
    <thetext>fixed in CR http://www.w3.org/TR/html5/embedded-content-0.html#when-a-text-alternative-is-not-available-at-the-time-of-publication</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>