HtmlParseError
A collection of HTML parse error codes.
using AngleSharp.Attributes;
namespace AngleSharp.Parser.Html
{
public enum HtmlParseError : ushort
{
[DomDescription("Unexpected end of the given file.")]
EOF = 0,
[DomDescription("NULL character replaced by repl. character.")]
Null = 1,
[DomDescription("Bogus comment detected.")]
BogusComment = 26,
[DomDescription("Ambiguous open tag.")]
AmbiguousOpenTag = 27,
[DomDescription("The tag has been closed unexpectedly.")]
TagClosedWrong = 28,
[DomDescription("The closing slash has been misplaced.")]
ClosingSlashMisplaced = 29,
[DomDescription("Undefined markup declaration found.")]
UndefinedMarkupDeclaration = 30,
[DomDescription("Comment ended with an exclamation mark.")]
CommentEndedWithEM = 31,
[DomDescription("Comment ended with a dash.")]
CommentEndedWithDash = 32,
[DomDescription("Comment ended with an unexpected character.")]
CommentEndedUnexpected = 33,
[DomDescription("The given tag cannot be self-closed.")]
TagCannotBeSelfClosed = 34,
[DomDescription("End tags can never be self-closed.")]
EndTagCannotBeSelfClosed = 35,
[DomDescription("End tags cannot carry attributes.")]
EndTagCannotHaveAttributes = 36,
[DomDescription("No caption tag has been found within the local scope.")]
CaptionNotInScope = 37,
[DomDescription("No select tag has been found within the local scope.")]
SelectNotInScope = 38,
[DomDescription("No table row has been found within the local scope.")]
TableRowNotInScope = 39,
[DomDescription("No table has been found within the local scope.")]
TableNotInScope = 40,
[DomDescription("No paragraph has been found within the local scope.")]
ParagraphNotInScope = 41,
[DomDescription("No body has been found within the local scope.")]
BodyNotInScope = 42,
[DomDescription("No block element has been found within the local scope.")]
BlockNotInScope = 43,
[DomDescription("No table cell has been found within the local scope.")]
TableCellNotInScope = 44,
[DomDescription("No table section has been found within the local scope.")]
TableSectionNotInScope = 45,
[DomDescription("No object element has been found within the local scope.")]
ObjectNotInScope = 46,
[DomDescription("No heading element has been found within the local scope.")]
HeadingNotInScope = 47,
[DomDescription("No list item has been found within the local scope.")]
ListItemNotInScope = 48,
[DomDescription("No form has been found within the local scope.")]
FormNotInScope = 49,
[DomDescription("No button has been found within the local scope.")]
ButtonInScope = 50,
[DomDescription("No nobr element has been found within the local scope.")]
NobrInScope = 51,
[DomDescription("No element has been found within the local scope.")]
ElementNotInScope = 52,
[DomDescription("Character reference found no numbers.")]
CharacterReferenceWrongNumber = 53,
[DomDescription("Character reference found no semicolon.")]
CharacterReferenceSemicolonMissing = 54,
[DomDescription("Character reference within an invalid range.")]
CharacterReferenceInvalidRange = 55,
[DomDescription("Character reference is an invalid number.")]
CharacterReferenceInvalidNumber = 56,
[DomDescription("Character reference is an invalid code.")]
CharacterReferenceInvalidCode = 57,
[DomDescription("Character reference is not terminated by a semicolon.")]
CharacterReferenceNotTerminated = 58,
[DomDescription("Character reference in attribute contains an invalid character (=).")]
CharacterReferenceAttributeEqualsFound = 59,
[DomDescription("The specified item has not been found.")]
ItemNotFound = 60,
[DomDescription("The encoding operation (either encoded or decoding) failed.")]
EncodingError = 61,
[DomDescription("Doctype unexpected character after the name detected.")]
DoctypeUnexpectedAfterName = 64,
[DomDescription("Invalid character in the public identifier detected.")]
DoctypePublicInvalid = 65,
[DomDescription("Invalid character in the doctype detected.")]
DoctypeInvalidCharacter = 66,
[DomDescription("Invalid character in the system identifier detected.")]
DoctypeSystemInvalid = 67,
[DomDescription("The doctype tag is misplaced and ignored.")]
DoctypeTagInappropriate = 68,
[DomDescription("The given doctype tag is invalid.")]
DoctypeInvalid = 69,
[DomDescription("Doctype encountered unexpected character.")]
DoctypeUnexpected = 70,
[DomDescription("The doctype tag is missing.")]
DoctypeMissing = 71,
[DomDescription("The given public identifier for the notation declaration is invalid.")]
NotationPublicInvalid = 72,
[DomDescription("The given system identifier for the notation declaration is invalid.")]
NotationSystemInvalid = 73,
[DomDescription("The type declaration is missing a valid definition.")]
TypeDeclarationUndefined = 74,
[DomDescription("A required quantifier is missing in the provided expression.")]
QuantifierMissing = 75,
[DomDescription("The double quotation marks have been misplaced.")]
DoubleQuotationMarkUnexpected = 80,
[DomDescription("The single quotation marks have been misplaced.")]
SingleQuotationMarkUnexpected = 81,
[DomDescription("The attribute's name contains an invalid character.")]
AttributeNameInvalid = 96,
[DomDescription("The attribute's value contains an invalid character.")]
AttributeValueInvalid = 97,
[DomDescription("The beginning of a new attribute has been expected.")]
AttributeNameExpected = 98,
[DomDescription("The attribute has already been added.")]
AttributeDuplicateOmitted = 99,
[DomDescription("The given tag must be placed in head tag.")]
TagMustBeInHead = 112,
[DomDescription("The given tag is not appropriate for the current position.")]
TagInappropriate = 113,
[DomDescription("The given tag cannot end at the current position.")]
TagCannotEndHere = 114,
[DomDescription("The given tag cannot start at the current position.")]
TagCannotStartHere = 115,
[DomDescription("The given form cannot be placed at the current position.")]
FormInappropriate = 116,
[DomDescription("The given input cannot be placed at the current position.")]
InputUnexpected = 117,
[DomDescription("The closing tag and the currently open tag do not match.")]
TagClosingMismatch = 118,
[DomDescription("The given end tag does not match the current node.")]
TagDoesNotMatchCurrentNode = 119,
[DomDescription("This position does not support a linebreak (LF, FF).")]
LineBreakUnexpected = 120,
[DomDescription("The head tag can only be placed once inside the html tag.")]
HeadTagMisplaced = 128,
[DomDescription("The html tag can only be placed once as the root element.")]
HtmlTagMisplaced = 129,
[DomDescription("The body tag can only be placed once inside the html tag.")]
BodyTagMisplaced = 130,
[DomDescription("The image tag has been named image instead of img.")]
ImageTagNamedWrong = 131,
[DomDescription("Tables cannot be nested.")]
TableNesting = 132,
[DomDescription("An illegal element has been detected in a table.")]
IllegalElementInTableDetected = 133,
[DomDescription("Select elements cannot be nested.")]
SelectNesting = 134,
[DomDescription("An illegal element has been detected in a select.")]
IllegalElementInSelectDetected = 135,
[DomDescription("The frameset element has been misplaced.")]
FramesetMisplaced = 136,
[DomDescription("Headings cannot be nested.")]
HeadingNested = 137,
[DomDescription("Anchor elements cannot be nested.")]
AnchorNested = 138,
[DomDescription("The given token cannot be inserted here.")]
TokenNotPossible = 144,
[DomDescription("The current node is not the root element.")]
CurrentNodeIsNotRoot = 145,
[DomDescription("The current node is the root element.")]
CurrentNodeIsRoot = 146,
[DomDescription("This tag is invalid in fragment mode.")]
TagInvalidInFragmentMode = 147,
[DomDescription("There is already an open form.")]
FormAlreadyOpen = 148,
[DomDescription("The form has been closed wrong.")]
FormClosedWrong = 149,
[DomDescription("The body has been closed wrong.")]
BodyClosedWrong = 150,
[DomDescription("An expected formatting element has not been found.")]
FormattingElementNotFound = 151
}
}