Bug 8645 - Alt text for images
Summary: Alt text for images
Status: RESOLVED NEEDSINFO
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Judy Brewer
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/text-lev...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 10:50 UTC by Gez Lemon
Modified: 2012-01-11 10:04 UTC (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gez Lemon 2010-01-05 10:50:10 UTC
1.  Steven's proposal at http://www.paciellogroup.com/blog/misc/HTML5/textalternatives.html does a number of nice things. (Recc: adopt this general approach. Rationale is that the user agent and assistive technology support for the elements and attributes in question will be subject to change over time. It's good to have examples, but normative examples are problematic in many of these cases given the state of UA support. Currently, the spec includes roughly 15 pages of alt-related examples, far more extensive than examples provided for any other attribute. Because these concepts apply generally and should apply beyond the scope of the <img> element, the examples should be addressed in a separate section (ex. as an appendix or as part of 4.8.2.1.12. Regarding the specific examples, a number of them still provide conflicting advice from WCAG 2.0, should be reviewed for consistency with the WAI CG Consensus resolutions and should be updated to reflect ARIA integration when it is complete.

2. Regarding, "In a conforming document, the absence of the alt attribute indicates that the image is a key part of the content but that a textual replacement for the image was not available when the image was generated." Propose that, as with previous version of HTML, a valid text alternative be present for conformance with the specification. Refer to WAI CG Consensus Resolutions on Text alternatives in HTML 5.

3. The derivation of caption information in, "If the src attribute is set and the alt attribute is not," (http://dev.w3.org/html5/spec/embedded-content-0.html#the-img-element) lists title at the top of the list. Suggest that it instead be listed second, following the first <dt> of the parent <figure>.

4. The description of text alternatives should include a specific reference to WCAG 2.0 (http://www.w3.org/TR/WCAG/#text-equiv)

5. This element should include some mechanism to programmatically associate a long description with non-text content (ex. aria-describedby)
Comment 1 Ian 'Hixie' Hickson 2010-01-06 12:01:20 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: Did Not Understand Request
Change Description: no spec change
Rationale: Please file just one issue per bug.

Regarding #1, I do not see how the alt="" text advice applies to anything other than <img>. It seems very specific to <img> and seems like it would do the most good slap bang in the middle of that section, in the author's face, as it were. An appendix is too easy to ignore ("I'll read that accessibility stuff later").

Regarding #2, the spec already seems to say what you are asking for.

Regarding #3, why would the title="" attribute on the element itself be less good that the figure caption, given that there might be multiple images in the figure?

Regarding #4, WCAG is already mentioned in the "recommended reading" section. The #text-equiv part doesn't seem to say anything that isn't already covered in more detail by HTML5, though, so referencing it in that section doesn't seem especially useful to readers.

Regarding #5, what's wrong with aria-describedby?
Comment 2 Michael Cooper 2010-02-11 17:18:10 UTC
The HTML Accessibility Task Force intends to track these issues, per the proposal at http://lists.w3.org/Archives/Public/public-html-a11y/2010Jan/0245.html.
Comment 3 Martin Kliehm 2010-11-30 11:56:44 UTC
This general issue has been escalated in ISSUE-31
Comment 4 Rich Schwerdtfeger 2011-09-29 22:12:04 UTC
You are really talking about a label and not a description. Descriptions are longer descriptions of the object other than a label which alt is.

for example, rather than alt use: 
<img src="foo.jpg" aria-label="Lady of the Lake"/>

You could simply tell browsers to render the label when images were turned off.

You don't require a labelledby relationship either. 

Rich
Comment 5 steve faulkner 2012-01-11 10:04:41 UTC
removing accessibility keywords, This general issue has been escalated in ISSUE-31