| Title | Well-formedness error: duplicate attributes |
|---|---|
| Description | An XHTML file that is not well-formed because there is an img element that has two alt attributes instead of one.
Both alt attributes contain a different text alternative. It is not clear if the first or the last attribute will take precedence in user agents and assistive technologies.
|
| Creator | BenToWeb (Christophe.Strobbe@…) |
| Rights | Copyright BenToWeb 2005-2007 |
| Language | English |
| Date | 2005-10-05 |
| 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: Strictly Conforming Documents .
This test case is intended to fail because there is an element with duplicate attributes. This makes the document ambiguous for screen readers.
Three or more accessibility experts.
“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 11, column 82: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#ensure-compat-parses.
The test case fails the following success criterion at line 11, column 117: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#ensure-compat-parses.
The document is not well-formed: the image has two alt attributes; the user may not get the correct alternative text.
XML 1.0, Third Edition: An attribute name MUST NOT appear more than once in the same start-tag or empty-element tag.
The test case fails the following success criterion at line 11, column 82: http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-20050211/#4.1_use-spec-avoid-spec-no-exception.
The test case fails the following success criterion at line 11, column 117: http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-20050211/#4.1_use-spec-avoid-spec-no-exception.
The document is not well-formed: the image has two alt attributes; the user may not get the correct alternative text.
XML 1.0, Third Edition: An attribute name MUST NOT appear more than once in the same start-tag or empty-element tag.