Module parserino.html.errors

The parse errors of the HTML parser.

The tokenizer uses the codes of the HTML standard (unexpected-null-character, ...). The standard doesn't name the errors of the tree construction: they have the codes after MissingDoctype, with names in the same style.

Functions

NameDescription
errorName(code) The name of a code, as in the standard: "unexpected-null-character"

Structs

NameDescription
RawParseError A parse error found by the parser: the position is a line and a column (1-based, in characters)

Enums

NameDescription
ParseErrorCode The code of a parse error. The tokenizer errors are the codes of the standard in PascalCase (UnexpectedNullCharacter is unexpected-null-character, see errorName).