API Reference NLdoc.Validation v#4.0.19
View SourceModules
NLdoc Validation is a library that provides accessibility validation for NLdoc documents. TODO: proper description
This module provides a macro for defining validation rules for NLdoc spec objects, i.e. documents and their elements. Such rules check for semantic correctness and accessibility concerns in the spec objects.
This rule validates that the a definition list has at least one definition term.
This rule validates that each DefinitionTerm in a DefinitionList is followed by a DefinitionDetails.
This rule validates that definition details must always contain discernible text.
This rule validates that a definition term must always contain discernible text.
This rule validates that a heading must always contain discernible text.
This rule validates that a table header must always contain discernible text.
This rule validates that a heading's level is valid according to the HTML spec (i.e. between 1 and 6).
This rule validates that headings are ordered sequentially-descending, i.e. heading levels should only increase by one, but may decrease by any.
This rule validates that an image has an alternative text, or is marked as decorative.
This rule validates that a link must always contain discernible text.
This rule validates that the style underline was not used on a Text.
Ensures paragraph elements are not used to style headings.
This rule validates that a document has at least one heading level 1.
This rule validates that the document has only one Heading with level 1.
This rule validates that a document starts with a Heading with level 1. It produces a validation finding on the first heading with level 1 found in the document, if it is not the first element in the document.
This rule validates that heading is not manually styled bold.
This rule validates that heading is not manually styled italic.
This rule validates that tables have more than one row.
Severity levels for validation rules.
State for validation rules.