Test Case xhtml1_wcag2_20050630_4.1_l3_sc1_004: Well-formedness error: closing tag without matching opening tag

Formal Metadata

Formal Metadata
TitleWell-formedness error: closing tag without matching opening tag
DescriptionAn XHTML file that is not well-formed because there is a closing tag (</div>) that has no matching opening tag (</div>). This does probably not cause ambiguity but is not allowed by the specification.
CreatorBenToWeb (Christophe.Strobbe@…)
RightsCopyright BenToWeb 2004-2007
LanguageEnglish
Date2005-10-05
Statusaccepted for end user evaluation

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

Technical specification: Documents must be well-formed .

Test Data

Purpose

This test case is intended to fail because the document is not well-formed: there is an end tag for an element that was never opened.

Test Modes

End user.

Test Files

Test file.

TCDL Data

xhtml1_wcag2_20050630_4.1_l3_sc1_004 (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 14, column 1: http://www.w3.org/WAI/GL/WCAG20/WD-WCAG20-20050211/#4.1_use-spec-avoid-spec-no-exception.

Functional Outcome

The syntax of the document is not correct; there is an end tag for an element that was not opened.