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 20402 - use of title attribute in example is incorrect
Summary: use of title attribute in example is incorrect
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: CR HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 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:38 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:38:49 UTC
In the following example a title attribute is used in conjunction with a null alt (alt="") a null alt maps to role=presentation as per HTML5 and will not be represented in the accessibility tree (elements with role=presentation are removed from the acc tree), thus the title attribute content will not available to users of assistive technology. Furthermore the use of title in this instance is strongly discouraged as it is not accessible to a range of users due to poor implementation.

http://www.w3.org/TR/2012/WD-html5-20121025/the-img-element.html#general-guidelines

"<article>
 <h1>Fluffy and the Yarn</h1>
 <p>Fluffy was a cat who liked to play with yarn. He also liked to jump.</p>
 <aside><img src="fluffy.jpg" alt="" title="Fluffy"></aside>
 <p>He would play in the morning, he would play in the evening.</p>
</article>"

Suggest:

<article>
 <h1>Fluffy and the Yarn</h1>
 <p>Fluffy was a cat who liked to play with yarn. He also liked to jump.</p>
 <figure>
<img src="fluffy.jpg">
<figcaption>Fluffy</figcaption>
</figure>
 <p>He would play in the morning, he would play in the evening.</p>
</article>
Comment 1 steve faulkner 2013-01-12 11:12:08 UTC
proposed resolution in pull request: https://github.com/w3c/html/pull/7
Comment 2 Robin Berjon 2013-01-14 13:05:37 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