| Title | Alt attribute for images: image with empty alt attribute in link with link text |
|---|---|
| Description | A document containing a link with an image and text.
The image itself does not contain text and has an empty alt attribute (the attribute is present, but there is no text or white space between the double quotation marks),
but the link text describes the target of the link.
|
| Creator | BenToWeb (Christophe.Strobbe@…) |
| Rights | Copyright BenToWeb 2005-2007 |
| Language | English |
| Date | 2005-08-22 |
| Status | accepted QA |
Technologies are markup languages or data formats. If the technology is a markup language, “features” refers to elements and attributes.
XHTML™ 1.0 The Extensible HyperText Markup Language (Second Edition)
Feature: img
(namespace: http://www.w3.org/1999/xhtml)
.
Technical specification: How to specify alternate text .
This test case is intended to fail because the text alternative immediately follows the image. (The accessibility of the target of the link is not part of this test case.)
Accessibility expert.
“Rules” refer to success criteria in WCAG 2.0, checkpoints in WCAG 1.0 and similar requirements.
The test case fails the following success criterion at line 10, column 123: http://www.w3.org/TR/2007/WD-WCAG20-20070517/Overview.html#text-equiv-all.
The test case fails the following success criterion at line 10, column 133: http://www.w3.org/TR/2007/WD-WCAG20-20070517/Overview.html#text-equiv-all.
The image has a text description in the link text.
The img element has an alt attribute.
This test case maps to technique H2: Combining adjacent image and text links for the same resource.
The test case fails the following success criterion at line 10, column 123: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#text-equiv-all.
The test case fails the following success criterion at line 10, column 133: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#text-equiv-all.
The image has a text description in the link text. User testing provided the following results: users of screen readers and/or a Braille display (blind/low vision) had problems understanding what was in the image.
The test case passes (line 10, column 123) the following success criterion: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#text-equiv-informative.
The test case passes (line 10, column 133) the following success criterion: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#text-equiv-informative.
The image has a text description in the link text.
The img element has an alt attribute.
The test case passes the following success criterion: http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-20050211/#4.1_use-spec-document-backward-compat-violations.
The image has a text description.
The img element has an alt attribute with appropriate alternative text and therefore the img element is valid.