Asqatasun v4 - RGAA 3.0 - Rule 8.1.3
Summary
@@@ TO-DO
Business description
Criterion
Test
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
- code : BadDoctypeLocation
- status: Failed
- parameter : none
- present in source : no
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)