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.
Types 2
enumParseErrorCode : ubyte
The code of a parse error. The tokenizer errors are the codes of the standard in PascalCase (UnexpectedNullCharacter is unexpected-null-character, see errorName).
AbruptClosingOfEmptyComment
AbruptDoctypePublicIdentifier
AbruptDoctypeSystemIdentifier
AbsenceOfDigitsInNumericCharacterReference
CDataInHtmlContent
CharacterReferenceOutsideUnicodeRange
ControlCharacterInInputStream
ControlCharacterReference
DisallowedProcessingInstructionTarget
DuplicateAttribute
EndTagWithAttributes
EndTagWithTrailingSolidus
EofBeforeTagName
EofInCData
EofInComment
EofInDoctype
EofInProcessingInstruction
EofInScriptHtmlCommentLikeText
EofInTag
IncorrectlyClosedComment
IncorrectlyOpenedComment
InvalidCharacterSequenceAfterDoctypeName
InvalidFirstCharacterOfProcessingInstructionTarget
InvalidFirstCharacterOfTagName
InvalidProcessingInstructionTarget
MissingAttributeValue
MissingDoctypeName
MissingDoctypePublicIdentifier
MissingDoctypeSystemIdentifier
MissingEndTagName
MissingQuoteBeforeDoctypePublicIdentifier
MissingQuoteBeforeDoctypeSystemIdentifier
MissingSemicolonAfterCharacterReference
MissingWhitespaceAfterDoctypePublicKeyword
MissingWhitespaceAfterDoctypeSystemKeyword
MissingWhitespaceBeforeDoctypeName
MissingWhitespaceBetweenAttributes
MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers
NestedComment
NoncharacterCharacterReference
NoncharacterInInputStream
NonVoidHtmlElementStartTagWithTrailingSolidus
NullCharacterReference
SurrogateCharacterReference
SurrogateInInputStream
UnexpectedCharacterAfterDoctypeSystemIdentifier
UnexpectedCharacterInAttributeName
UnexpectedCharacterInUnquotedAttributeValue
UnexpectedEqualsSignBeforeAttributeName
UnexpectedNullCharacter
UnexpectedSolidusInTag
UnknownNamedCharacterReference
MissingDoctypethe document doesn't start with `<!DOCTYPE html>`
NonConformingDoctypea doctype other than `<!DOCTYPE html>` (legacy or quirks)
UnexpectedDoctypea doctype after the beginning
UnexpectedStartTaga start tag not allowed here (ignored or moved)
UnexpectedEndTagan end tag without a matching open element, or not allowed here
UnexpectedTexttext not allowed here (for example directly inside a table)
MisnestedTagan element closed while other elements inside it are still open
UnclosedElementAtEofelements still open at the end of the input
structRawParseError
A parse error found by the parser: the position is a line and a column (1-based, in characters)
Functions 1
fn
string errorName(ParseErrorCode code) @nogc nothrow pure @safeThe name of a code, as in the standard: `"unexpected-null-character"`