Test Case xhtml1_wcag2_20050630_1.1_l1_sc1_022: Alternative text for areas in client-side image maps: two nested objects both referencing same map (inside object); empty alt attributes in image map areas

Formal Metadata

Formal Metadata
TitleAlternative text for areas in client-side image maps: two nested objects both referencing same map (inside object); empty alt attributes in image map areas
DescriptionA document with an object element in an image map. The object element embeds an image in PNG format, and contains another object element that embeds the GIF version of the same image. This second object elment contains only the image map. The object elements do not have a title attribute or any other text alternative except the alt attributes of the map's area elements. Most importantly, the alt attributes of the image map's area elements are empty.
CreatorBenToWeb (Christophe.Strobbe@…)
RightsCopyright BenToWeb 2004-2007
LanguageEnglish
Date2005-08-29
Statusdraft

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: object (namespace: http://www.w3.org/1999/xhtml) .

Technical specification: General Inclusion: The object element .

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 none of the areas of the image map has a text alternative. The empty text alternatives are an issue in their own right, but, in addition to this, browser support for the object element may also determine if this test case is accessible or not. Internet Explorer has weak or no support for the object element. The innermost object element does not contain an img element with an alt attribute, the image itself is identified in the text above it.

Test Modes

End user.

Test Files

Test file.

TCDL Data

xhtml1_wcag2_20050630_1.1_l1_sc1_022 (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 10, column 6: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#text-equiv-informative.

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

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

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

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

Functional Outcome

The image has a text description in the sentence preceding it, but none of the areas in the image map has a text description.

Technical Comment

The object element has an img element with an alt attribute as a fallback . Since there is no direct text alternative, it is not entirely clear if this code is accessible. However, since each of the area elements in the map element has an empty alt attribute, this case does not pass.

This test case is identical to xhtml1_wcag2_20050630_1.1_l1_sc1_015, except that the alt attributes of the area elements are now empty.

(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.)

(Internet Explorer does not support object so the test does not work in this browser.)