Test Case sc1.3.1_l1_148: var element used to mark up code that does not only contain variables

Formal Metadata

Formal Metadata
Titlevar element used to mark up code that does not only contain variables
DescriptionA document with some Java code. The section String[] args is marked up as a variable, even though only the last part, args is really a variable.
CreatorBenToWeb (evlach@…)
RightsCopyright BenToWeb 2004-2007
LanguageEnglish
Date2005-08-28
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: var (namespace: http://www.w3.org/1999/xhtml) .

Technical specification: Phrase elements: EM, STRONG, DFN, CODE, SAMP, KBD, VAR, CITE, ABBR, and ACRONYM .

CSS 2.0 Specification

CSS 2.0 Specification

Test Data

Purpose

The test case is intended to fail because of incorrect use of semantic tag used to convey information.

Expert Guidance

Check whether semantic markup is used correctly.

Test Modes

Accessibility expert.

Test Files

Test file.

TCDL Data

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

Functional Outcome

Incorrect use of semantic tag used to convey information.

Technical Comment

The semantic tag should contain only the Java variable ("args").

This test case does not map to a WCAG 2.0 technique or failure.

Secondary Rules

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

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

Functional Outcome

Incorrect use of semantic tag used to convey information.

Technical Comment

Online version: sc1.3.1_l1_148.