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 20401 - non conforming use of title attribute in example code
Summary: non conforming use of title attribute in example code
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: CR HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P3 normal
Target Milestone: ---
Assignee: Robin Berjon
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: a11y, a11y_text-alt
Depends on:
Blocks:
 
Reported: 2012-12-15 17:28 UTC by steve faulkner
Modified: 2013-01-14 13:05 UTC (History)
3 users (show)

See Also:


Attachments

Description steve faulkner 2012-12-15 17:28:26 UTC
In http://www.w3.org/TR/2012/WD-html5-20121025/the-img-element.html#general-guidelines

The following example is non conforming the title attribute cannot be used to provide a caption in the instance:

"Here it is not known at the time of publication what the image will be, only that it will be a coat of arms of some kind, and thus no replacement text can be provided, and instead only a brief caption for the image is provided, in the title attribute:

<p>The last user to have uploaded a coat of arms uploaded this one:</p>
<p><img src="last-uploaded-coat-of-arms.cgi" title="User-uploaded coat of arms."></p>"

suggest changing example to:

<figure>
<img src="last-uploaded-coat-of-arms.cgi">
<figcaption>User uploaded coat of arms.</figcaption>
</figure>
Comment 1 steve faulkner 2013-01-12 11:10:12 UTC
proposed resolution in pull request: https://github.com/w3c/html/pull/7
Comment 2 Robin Berjon 2013-01-14 13:05:52 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: Applied change as per PR
Rationale: Low hanging fruit to make progress in aligning with AltTechs