Test Case sc1.3.1_l1_046: Checkbox with failed explicit association between input and label

Formal Metadata

Formal Metadata
TitleCheckbox with failed explicit association between input and label
DescriptionA document with a simple form that contains only a checkbox. Next to the input element (type="checkbox") is the label element for the field; input and label are not explicitly associated with each other by means of for and id attributes because the values of the attributes do not match each other.
CreatorBenToWeb (evlach@…)
RightsCopyright BenToWeb 2004-2007
LanguageEnglish
Date2005-08-30
Statusintegrate feedback

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

Technical specification: The INPUT element .

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

Technical specification: The LABEL element .

Test Data

Purpose

The test case is intended to fail because the for attribute of the label and the id attribute of the input do not match, so there is not explicit association between label and field.

Test Modes

Automatic evaluation.

Test Files

Test file.

TCDL Data

sc1.3.1_l1_046 (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 11, column 29: http://www.w3.org/TR/2007/WD-WCAG20-20070517/Overview.html#content-structure-separation-programmatic.

Functional Outcome

Assistive technology can find no explicit association between input and label.

Technical Comment

The id attribute on the input element says "cats" but the for attribute on the label element is empty.

The test case maps to failure F68: Failure of SC 1.3.1 and 4.1.2 due to the association of label and user interface controls not being programmatically determinable.

Secondary Rules

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

The test case fails the following success criterion at line 11, column 50: http://www.w3.org/TR/2006/WD-WCAG20-20060427/guidelines.html#content-structure-separation-programmatic.

Functional Outcome

Assistive technology can find no explicit association between input and label.

Technical Comment

The id attribute on the input element says "cats" but the for attribute on the label element is empty.

Online version: sc1.3.1_l1_046.

Secondary Rule (WCAG 2.0 - June 2005 Working Draft)

The test case passes (line 11, column 50) the following success criterion: http://www.w3.org/TR/2006/WD-WCAG20-20050630/#content-structure-separation-programmatic.

Functional Outcome

(None specified.)