HtmlComplianceIssue Structure

An HTML compliance issue detected while tokenizing.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public readonly struct HtmlComplianceIssue : IEquatable<HtmlComplianceIssue>
Inheritance
Object    ValueType    HtmlComplianceIssue
Implements
IEquatableHtmlComplianceIssue

Remarks

Describes a single parse error, as defined by the tokenization section of the HTML Living Standard, along with the location within the document where it was detected.

New properties may be added to this structure in future versions of MimeKit in order to provide richer context about a violation. For that reason, always construct instances using one of the available constructors rather than relying on the default value.

The default value of this structure has a Violation of None, which is never reported and cannot be constructed, so it may be used to detect an uninitialized instance.

Constructors

HtmlComplianceIssue Initialize a new instance of the HtmlComplianceIssue struct.

Properties

Categories Get the categories of harm that the HTML compliance violation may cause.
Description Get a brief description of the HTML compliance violation.
LineNumber Get the line number where the violation was found.
LinePosition Get the position within the line where the violation was found.
Offset Get the character offset within the document where the violation was found.
Remarks Get a detailed explanation of the HTML compliance violation.
Severity Get the severity of the HTML compliance violation.
Violation Get the specific HTML compliance violation that occurred.

Methods

Equals(HtmlComplianceIssue) Determine whether the specified HtmlComplianceIssue is equal to the current HtmlComplianceIssue.
Equals(Object) Determine whether the specified Object is equal to the current HtmlComplianceIssue.
(Overrides ValueTypeEquals(Object))
GetCategories Get the categories of harm that an HTML compliance violation may cause.
GetDescription Get a brief description of an HTML compliance violation.
GetHashCode Serve as a hash function for a HtmlComplianceIssue object.
(Overrides ValueTypeGetHashCode)
GetRemarks Get a detailed explanation of an HTML compliance violation.
GetSeverity Get the severity of an HTML compliance violation.
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Get a string representation of the HTML compliance issue.
(Overrides ValueTypeToString)

Operators

Equality(HtmlComplianceIssue, HtmlComplianceIssue) Compare two HtmlComplianceIssue objects for equality.
Inequality(HtmlComplianceIssue, HtmlComplianceIssue) Compare two HtmlComplianceIssue objects for inequality.

See Also