HtmlTokenizerComplianceLogger Property

Get or set the logger to use for reporting HTML compliance violations.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public IHtmlComplianceLogger? ComplianceLogger { get; set; }

Property Value

IHtmlComplianceLogger
The HTML compliance logger.

Remarks

Gets or sets the logger to use for reporting HTML compliance violations.

Violations are the parse errors defined by the tokenization section of the HTML Living Standard, and are reported as they are encountered by ReadNextToken(HtmlToken). When the value is (the default), no compliance checks are performed.

Errors in the input stream itself (such as literal control characters, noncharacters or lone surrogates) are not reported.

See Also