HtmlParseError Class

A parse error reported by the HTML parser (https://html.spec.whatwg.org/multipage/parsing.html#parse-errors).

public sealed class HtmlParseError

Properties

NameDescription
CodeThe error code, as defined by the specification (e.g. unexpected-null-character).
ColumnThe one-based column number.
LineThe one-based line number.
OffsetThe offset of the character in the input, in UTF-16 code units.

The error code, as defined by the specification (e.g. unexpected-null-character).

public string Code { get; }

Property value

string

The one-based column number.

public int Column { get; }

Property value

int

The one-based line number.

public int Line { get; }

Property value

int

The offset of the character in the input, in UTF-16 code units.

public int Offset { get; }

Property value

int

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.