This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 20404 - more non conforming uses of title attribute in example code
Summary: more non conforming uses of title attribute in example code
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: steve faulkner
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: a11y, a11y_text-alt, CR
Depends on:
Blocks:
 
Reported: 2012-12-15 18:11 UTC by steve faulkner
Modified: 2014-03-27 16:11 UTC (History)
6 users (show)

See Also:


Attachments

Description steve faulkner 2012-12-15 18:11:46 UTC
The following examples in the spec include non conforming usesof the title attribute:


"
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):

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

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:

<table>
 <thead>
  <tr> <th> Image <th> Description
 <tbody>
  <tr>
   <td> <img src="2421.png" title="Image 640 by 100, filename 'banner.gif'">
   <td> <input name="alt2421">
  <tr>
   <td> <img src="2422.png" title="Image 200 by 480, filename 'ad3.gif'">
   <td> <input name="alt2422">
</table>

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

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:

"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:

<table>
 <thead>
  <tr> <th> Image <th> Description
 <tbody>
  <tr>
   <td> <figure>
<img src="2421.png">
<figcaption>Image 640 by 100, filename 'banner.gif'</figcaption>
</figure>

   <td> <input name="alt2421">
  <tr>
   <td> <figure>
<img src="2422.png">
<figcaption>Image 200 by 480, filename 'ad3.gif'</figcaption>
</figure>
   <td> <input name="alt2422">
</table>

Notice that even in this example, as much useful information as possible is still included in the ficaption element."
Comment 1 steve faulkner 2013-02-25 23:47:09 UTC
EDITOR'S RESPONSE: This is an Editor'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