Asqatasun v4 - Summary

Asqatasun v4 - RGAA 3.0 - Rule 8.1.3

Summary

@@@ TO-DO

Business description

Criterion

8.1

Test

8.1.3

Description

For each Web page with a document type declaration, is this declaration located before the HTML tag in the source code?

Level

A

Technical description

Scope

Page

Decision level

Decidable

Algorithm

Selection

Set1

The <!doctype> tag of the page

Set2

The <html> tag of the page

Process

Test1

Test whether the position of element of Set1 is before the position of element of Set2.

If Test1 returns false, raise a MessageA

MessageA : Bad Doctype Location

Analysis

Passed

The doctype is declared before the <html> tag (Test1 returns true)

Failed

The doctype is declared after the <html> tag (Test1 returns false)

Not Applicable

The page has no doctype (Set1)

TestCases

TestCases files for rule 8.1.3