Table of Contents

Class HtmlDoctypeToken

Namespace
AngleSharp.Html.Parser.Tokens
Assembly
AngleSharp.dll

The DOCTYPE token.

public sealed class HtmlDoctypeToken : HtmlToken
Inheritance
HtmlDoctypeToken
Inherited Members
Extension Methods

Constructors

HtmlDoctypeToken(bool, TextPosition)

Creates a new DOCTYPE token with the quirks mode set initially.

public HtmlDoctypeToken(bool quirksForced, TextPosition position)

Parameters

quirksForced bool

The state of the force-quirks flag.

position TextPosition

The token's position.

Properties

IsFullQuirks

Gets if the given doctype token represents a full quirks mode state.

public bool IsFullQuirks { get; }

Property Value

bool

IsLimitedQuirks

Gets if the given doctype token represents a limited quirks mode state.

public bool IsLimitedQuirks { get; }

Property Value

bool

IsPublicIdentifierMissing

Gets the state of the public identifier.

public bool IsPublicIdentifierMissing { get; }

Property Value

bool

IsQuirksForced

Gets or sets the state of the force-quirks flag.

public bool IsQuirksForced { get; set; }

Property Value

bool

IsSystemIdentifierMissing

Gets the state of the system identifier.

public bool IsSystemIdentifierMissing { get; }

Property Value

bool

IsValid

Gets the status if the given doctype token matches one of the popular conditions.

public bool IsValid { get; }

Property Value

bool

PublicIdentifier

Gets or sets the value of the public identifier.

public string PublicIdentifier { get; set; }

Property Value

string

SystemIdentifier

Gets or sets the value of the system identifier.

public string SystemIdentifier { get; set; }

Property Value

string