Test Case sc1.1.1_l1_010: Alt attribute for image in image map: URL instead of text alternative

Formal Metadata

Formal Metadata
TitleAlt attribute for image in image map: URL instead of text alternative
DescriptionA document with a client-side image map; the image represents a traffic light. The img element has an alt attribute that duplicates the src attribute with the URI to the image instead of an appriopriate text alternative.
CreatorBenToWeb (Christophe.Strobbe@…)
RightsCopyright BenToWeb 2004-2007
LanguageEnglish
Date2005-08-26
Statusaccepted QA

Technologies and Features

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)

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 .

Feature: map (namespace: http://www.w3.org/1999/xhtml) .

Technical specification: How to create client-side image maps .

Feature: area (namespace: http://www.w3.org/1999/xhtml) .

Technical specification: Client-side image maps: the map and area elements .

Test Data

Purpose

This test case is intended to fail because the alt attribute of the img element contains a URL, so the text alternative does not serve the same purpose, nor does it present the same information as the image.

Test Modes

Automatic evaluation.

Test Files

Test file.

TCDL Data

sc1.1.1_l1_010 (XML).

Rules

“Rules” refer to success criteria in WCAG 2.0, checkpoints in WCAG 1.0 and similar requirements.

Primary Rules

The test case fails the following success criterion at line 15, column 7: http://www.w3.org/TR/2007/WD-WCAG20-20070517/Overview.html#text-equiv-all.

Functional Outcome

The image has no proper text description associated with it (the URL of the image file).

Technical Comment

The img element has a alt attribute containing (the URL of the image file).

(In Mozilla 1.7.3, SeaMonkey 1.1, Firefox 1.0, 1.5 and 2.0, the map does not work if the map element has only an id and no name attribute.)

This test case maps to failure F30: Failure of SC 1.1.1 due to using text alternatives that are not alternatives (e.g. filenames or placeholder text).

Secondary Rules

Secondary Rule (WCAG 2.0 - April 2006 Working Draft (Last Call))

The test case fails the following success criterion at line 15, column 7: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#text-equiv-all.

Functional Outcome

The image has no proper text description associated with it (the URL of the image file).

Technical Comment

The img element has a alt attribute containing (the URL of the image file).

(In Mozilla 1.7.3 and Firefox 1.0, the map does not work if the map element has only an id and no name attribute.)

This test case maps to failure F30: Failure of SC 1.1.1 due to using text alternatives that are not alternatives (e.g. filenames or placeholder text) (http://www.w3.org/TR/2006/WD-WCAG20-TECHS-20060427/Overview.html#F30).

Online version: sc1.1.1_l1_010.

Secondary Rule (WCAG 2.0 - June 2005 Working Draft)

The test case fails the following success criterion at line 15, column 7: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#text-equiv-informative.

Functional Outcome

The image has no proper text description associated with it (the URL of the image file).

Technical Comment

The img element has a alt attribute containing (the URL of the image file).

(In Mozilla 1.7.3 and Firefox 1.0, the map does not work if the map element has only an id and no name attribute.)