Enum html5tokenizer::Error [−][src]
pub enum Error {
Show 48 variants
AbruptClosingOfEmptyComment,
AbruptDoctypePublicIdentifier,
AbruptDoctypeSystemIdentifier,
AbsenceOfDigitsInNumericCharacterReference,
CdataInHtmlContent,
CharacterReferenceOutsideUnicodeRange,
ControlCharacterReference,
EndTagWithAttributes,
EndTagWithTrailingSolidus,
EofBeforeTagName,
EofInCdata,
EofInComment,
EofInDoctype,
EofInScriptHtmlCommentLikeText,
EofInTag,
IncorrectlyClosedComment,
IncorrectlyOpenedComment,
InvalidCharacterSequenceAfterDoctypeName,
InvalidFirstCharacterOfTagName,
MissingAttributeValue,
MissingDoctypeName,
MissingDoctypePublicIdentifier,
MissingDoctypeSystemIdentifier,
MissingEndTagName,
MissingQuoteBeforeDoctypePublicIdentifier,
MissingQuoteBeforeDoctypeSystemIdentifier,
MissingSemicolonAfterCharacterReference,
MissingWhitespaceAfterDoctypePublicKeyword,
MissingWhitespaceAfterDoctypeSystemKeyword,
MissingWhitespaceBeforeDoctypeName,
MissingWhitespaceBetweenAttributes,
MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers,
NestedComment,
NoncharacterCharacterReference,
NoncharacterInInputStream,
NullCharacterReference,
SurrogateCharacterReference,
SurrogateInInputStream,
UnexpectedCharacterAfterDoctypeSystemIdentifier,
UnexpectedCharacterInAttributeName,
UnexpectedCharacterInUnquotedAttributeValue,
UnexpectedEqualsSignBeforeAttributeName,
UnexpectedNullCharacter,
UnexpectedQuestionMarkInsteadOfTagName,
UnexpectedSolidusInTag,
UnknownNamedCharacterReference,
DuplicateAttribute,
ControlCharacterInInputStream,
}
Expand description
All parsing errors this tokenizer can emit.
Variants
AbruptClosingOfEmptyComment
This error corresponds to the $literal
error found in the WHATWG spec.
AbruptDoctypePublicIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
AbruptDoctypeSystemIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
AbsenceOfDigitsInNumericCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
CdataInHtmlContent
This error corresponds to the $literal
error found in the WHATWG spec.
CharacterReferenceOutsideUnicodeRange
This error corresponds to the $literal
error found in the WHATWG spec.
ControlCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
EndTagWithAttributes
This error corresponds to the $literal
error found in the WHATWG spec.
EndTagWithTrailingSolidus
This error corresponds to the $literal
error found in the WHATWG spec.
EofBeforeTagName
This error corresponds to the $literal
error found in the WHATWG spec.
EofInCdata
This error corresponds to the $literal
error found in the WHATWG spec.
EofInComment
This error corresponds to the $literal
error found in the WHATWG spec.
EofInDoctype
This error corresponds to the $literal
error found in the WHATWG spec.
EofInScriptHtmlCommentLikeText
This error corresponds to the $literal
error found in the WHATWG spec.
EofInTag
This error corresponds to the $literal
error found in the WHATWG spec.
IncorrectlyClosedComment
This error corresponds to the $literal
error found in the WHATWG spec.
IncorrectlyOpenedComment
This error corresponds to the $literal
error found in the WHATWG spec.
InvalidCharacterSequenceAfterDoctypeName
This error corresponds to the $literal
error found in the WHATWG spec.
InvalidFirstCharacterOfTagName
This error corresponds to the $literal
error found in the WHATWG spec.
MissingAttributeValue
This error corresponds to the $literal
error found in the WHATWG spec.
MissingDoctypeName
This error corresponds to the $literal
error found in the WHATWG spec.
MissingDoctypePublicIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
MissingDoctypeSystemIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
MissingEndTagName
This error corresponds to the $literal
error found in the WHATWG spec.
MissingQuoteBeforeDoctypePublicIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
MissingQuoteBeforeDoctypeSystemIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
MissingSemicolonAfterCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
MissingWhitespaceAfterDoctypePublicKeyword
This error corresponds to the $literal
error found in the WHATWG spec.
MissingWhitespaceAfterDoctypeSystemKeyword
This error corresponds to the $literal
error found in the WHATWG spec.
MissingWhitespaceBeforeDoctypeName
This error corresponds to the $literal
error found in the WHATWG spec.
MissingWhitespaceBetweenAttributes
This error corresponds to the $literal
error found in the WHATWG spec.
MissingWhitespaceBetweenDoctypePublicAndSystemIdentifiers
This error corresponds to the $literal
error found in the WHATWG spec.
NestedComment
This error corresponds to the $literal
error found in the WHATWG spec.
NoncharacterCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
NoncharacterInInputStream
This error corresponds to the $literal
error found in the WHATWG spec.
NullCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
SurrogateCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
SurrogateInInputStream
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedCharacterAfterDoctypeSystemIdentifier
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedCharacterInAttributeName
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedCharacterInUnquotedAttributeValue
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedEqualsSignBeforeAttributeName
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedNullCharacter
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedQuestionMarkInsteadOfTagName
This error corresponds to the $literal
error found in the WHATWG spec.
UnexpectedSolidusInTag
This error corresponds to the $literal
error found in the WHATWG spec.
UnknownNamedCharacterReference
This error corresponds to the $literal
error found in the WHATWG spec.
DuplicateAttribute
This error corresponds to the $literal
error found in the WHATWG spec.
ControlCharacterInInputStream
This error corresponds to the $literal
error found in the WHATWG spec.