Html Compliance Violation Enumeration
An enumeration of potential HTML compliance violations.
Definition
Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public enum HtmlComplianceViolationRemarks
An enumeration of the parse errors defined by the tokenization section of the HTML Living Standard, as reported to an IHtmlComplianceLogger.
Parse errors that describe the input stream itself (such as control characters, noncharacters and surrogates that appear literally in the text) are not reported.
A handful of members do not describe a defect in the document at all, but rather a limit that the document exceeded. They are reported the same way so that a consumer can tell that some of the content was not processed.
Members
| None | 0 | No violation. |
| EofBeforeTagName | 1 | The input ended immediately after a < or </. |
| InvalidFirstCharacterOfTagName | 2 | A < or </ was followed by a character that cannot start a tag name. |
| UnexpectedQuestionMarkInsteadOfTagName | 3 | A < was followed by a question mark. |
| MissingEndTagName | 4 | An end tag had no name (</>). |
| EofInTag | 5 | The input ended inside of a tag. |
| UnexpectedSolidusInTag | 6 | A / inside of a tag was not immediately followed by >. |
| EndTagWithAttributes | 7 | An end tag had attributes. |
| EndTagWithTrailingSolidus | 8 | An end tag had a trailing /. |
| DuplicateAttribute | 9 | A tag had more than one attribute with the same name. |
| MissingAttributeValue | 10 | An attribute name and = were not followed by a value. |
| MissingWhitespaceBetweenAttributes | 11 | A quoted attribute value was not followed by whitespace. |
| UnexpectedCharacterInAttributeName | 12 | An attribute name contained a ", ', or < character. |
| UnexpectedCharacterInUnquotedAttributeValue | 13 | An unquoted attribute value contained a ", ', <, =, or ` character. |
| UnexpectedEqualsSignBeforeAttributeName | 14 | An attribute name began with =. |
| AbruptClosingOfEmptyComment | 15 | A comment was closed by <!--> or <!--->. |
| EofInComment | 16 | The input ended inside of a comment. |
| IncorrectlyClosedComment | 17 | A comment was closed by --!> instead of -->. |
| IncorrectlyOpenedComment | 18 | A <! was not followed by --, DOCTYPE or [CDATA[. |
| NestedComment | 19 | A comment contained <!--. |
| AbruptDocTypePublicIdentifier | 20 | A DOCTYPE public identifier was terminated by > before its closing quote. |
| AbruptDocTypeSystemIdentifier | 21 | A DOCTYPE system identifier was terminated by > before its closing quote. |
| EofInDocType | 22 | The input ended inside of a DOCTYPE. |
| InvalidCharacterSequenceAfterDocTypeName | 23 | A DOCTYPE name was followed by something other than PUBLIC, SYSTEM or >. |
| MissingDocTypeName | 24 | A DOCTYPE had no name. |
| MissingDocTypePublicIdentifier | 25 | The PUBLIC keyword of a DOCTYPE was not followed by a public identifier. |
| MissingDocTypeSystemIdentifier | 26 | The SYSTEM keyword of a DOCTYPE was not followed by a system identifier. |
| MissingQuoteBeforeDocTypePublicIdentifier | 27 | A DOCTYPE public identifier was not quoted. |
| MissingQuoteBeforeDocTypeSystemIdentifier | 28 | A DOCTYPE system identifier was not quoted. |
| MissingWhitespaceAfterDocTypePublicKeyword | 29 | The PUBLIC keyword of a DOCTYPE was not followed by whitespace. |
| MissingWhitespaceAfterDocTypeSystemKeyword | 30 | The SYSTEM keyword of a DOCTYPE was not followed by whitespace. |
| MissingWhitespaceBeforeDocTypeName | 31 | The DOCTYPE keyword was not followed by whitespace. |
| MissingWhitespaceBetweenDocTypePublicAndSystemIdentifiers | 32 | The public and system identifiers of a DOCTYPE were not separated by whitespace. |
| UnexpectedCharacterAfterDocTypeSystemIdentifier | 33 | A DOCTYPE system identifier was followed by something other than whitespace or >. |
| AbsenceOfDigitsInNumericCharacterReference | 34 | A numeric character reference (&# or &#x) had no digits. |
| CharacterReferenceOutsideUnicodeRange | 35 | A numeric character reference referred to a code point beyond U+10FFFF. |
| ControlCharacterReference | 36 | A numeric character reference referred to a control character. |
| MissingSemicolonAfterCharacterReference | 37 | A character reference was not terminated by a semicolon. |
| NoncharacterCharacterReference | 38 | A numeric character reference referred to a Unicode noncharacter. |
| NullCharacterReference | 39 | A numeric character reference referred to U+0000 NULL. |
| SurrogateCharacterReference | 40 | A numeric character reference referred to a UTF-16 surrogate code point. |
| UnknownNamedCharacterReference | 41 | A named character reference terminated by a semicolon did not match any known name. |
| CDataInHtmlContent | 42 | A CDATA section appeared outside of SVG or MathML content. |
| EofInCData | 43 | The input ended inside of a CDATA section. |
| EofInScriptHtmlCommentLikeText | 44 | The input ended inside of an HTML comment-like construct within a script element. |
| UnexpectedNullCharacter | 45 | The input contained a U+0000 NULL character. |
| ElementDepthLimitExceeded | 46 | Elements were nested more deeply than the configured limit. |
| IgnoredStartTag | 47 | A start tag was ignored. |
| ForeignContentBreakout | 48 | A tag closed SVG or MathML elements by breaking out of foreign content. |
| AttributesMergedIntoExistingElement | 49 | The attributes of a start tag were added to an existing element. |
| TooManyComplianceIssues | 2,147,483,647 | Too many compliance issues were detected. |