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
boolThe state of the force-quirks flag.
position
TextPositionThe token's position.
Properties
IsFullQuirks
Gets if the given doctype token represents a full quirks mode state.
public bool IsFullQuirks { get; }
Property Value
IsLimitedQuirks
Gets if the given doctype token represents a limited quirks mode state.
public bool IsLimitedQuirks { get; }
Property Value
IsPublicIdentifierMissing
Gets the state of the public identifier.
public bool IsPublicIdentifierMissing { get; }
Property Value
IsQuirksForced
Gets or sets the state of the force-quirks flag.
public bool IsQuirksForced { get; set; }
Property Value
IsSystemIdentifierMissing
Gets the state of the system identifier.
public bool IsSystemIdentifierMissing { get; }
Property Value
IsValid
Gets the status if the given doctype token matches one of the popular conditions.
public bool IsValid { get; }
Property Value
PublicIdentifier
Gets or sets the value of the public identifier.
public string PublicIdentifier { get; set; }
Property Value
SystemIdentifier
Gets or sets the value of the system identifier.
public string SystemIdentifier { get; set; }