std/html/state

std/html/src/state.trb

The states of the HTML tokenizer, HtmlTokenizerState: the 80 states of section 13.2.5 of the standard.

type HtmlTokenizerState

type HtmlTokenizerState with Show, Equals, Hash

A state of the tokenizer, named as the standard names it with the words joined. The tree construction switches the tokenizer to Rcdata, Rawtext, ScriptData, Plaintext, CdataSection or back to Data by setting HtmlTokenizer.state; the other states are the tokenizer's own.

case Data

case Data

The data state.

case Rcdata

case Rcdata

The RCDATA state.

case Rawtext

case Rawtext

The RAWTEXT state.

case ScriptData

case ScriptData

The script data state.

case Plaintext

case Plaintext

The PLAINTEXT state.

case TagOpen

case TagOpen

The tag open state.

case EndTagOpen

case EndTagOpen

The end tag open state.

case TagName

case TagName

The tag name state.

case RcdataLessThanSign

case RcdataLessThanSign

The RCDATA less-than sign state.

case RcdataEndTagOpen

case RcdataEndTagOpen

The RCDATA end tag open state.

case RcdataEndTagName

case RcdataEndTagName

The RCDATA end tag name state.

case RawtextLessThanSign

case RawtextLessThanSign

The RAWTEXT less-than sign state.

case RawtextEndTagOpen

case RawtextEndTagOpen

The RAWTEXT end tag open state.

case RawtextEndTagName

case RawtextEndTagName

The RAWTEXT end tag name state.

case ScriptDataLessThanSign

case ScriptDataLessThanSign

The script data less-than sign state.

case ScriptDataEndTagOpen

case ScriptDataEndTagOpen

The script data end tag open state.

case ScriptDataEndTagName

case ScriptDataEndTagName

The script data end tag name state.

case ScriptDataEscapeStart

case ScriptDataEscapeStart

The script data escape start state.

case ScriptDataEscapeStartDash

case ScriptDataEscapeStartDash

The script data escape start dash state.

case ScriptDataEscaped

case ScriptDataEscaped

The script data escaped state.

case ScriptDataEscapedDash

case ScriptDataEscapedDash

The script data escaped dash state.

case ScriptDataEscapedDashDash

case ScriptDataEscapedDashDash

The script data escaped dash dash state.

case ScriptDataEscapedLessThanSign

case ScriptDataEscapedLessThanSign

The script data escaped less-than sign state.

case ScriptDataEscapedEndTagOpen

case ScriptDataEscapedEndTagOpen

The script data escaped end tag open state.

case ScriptDataEscapedEndTagName

case ScriptDataEscapedEndTagName

The script data escaped end tag name state.

case ScriptDataDoubleEscapeStart

case ScriptDataDoubleEscapeStart

The script data double escape start state.

case ScriptDataDoubleEscaped

case ScriptDataDoubleEscaped

The script data double escaped state.

case ScriptDataDoubleEscapedDash

case ScriptDataDoubleEscapedDash

The script data double escaped dash state.

case ScriptDataDoubleEscapedDashDash

case ScriptDataDoubleEscapedDashDash

The script data double escaped dash dash state.

case ScriptDataDoubleEscapedLessThanSign

case ScriptDataDoubleEscapedLessThanSign

The script data double escaped less-than sign state.

case ScriptDataDoubleEscapeEnd

case ScriptDataDoubleEscapeEnd

The script data double escape end state.

case BeforeAttributeName

case BeforeAttributeName

The before attribute name state.

case AttributeName

case AttributeName

The attribute name state.

case AfterAttributeName

case AfterAttributeName

The after attribute name state.

case BeforeAttributeValue

case BeforeAttributeValue

The before attribute value state.

case AttributeValueDoubleQuoted

case AttributeValueDoubleQuoted

The attribute value (double-quoted) state.

case AttributeValueSingleQuoted

case AttributeValueSingleQuoted

The attribute value (single-quoted) state.

case AttributeValueUnquoted

case AttributeValueUnquoted

The attribute value (unquoted) state.

case AfterAttributeValueQuoted

case AfterAttributeValueQuoted

The after attribute value (quoted) state.

case SelfClosingStartTag

case SelfClosingStartTag

The self-closing start tag state.

case BogusComment

case BogusComment

The bogus comment state.

case MarkupDeclarationOpen

case MarkupDeclarationOpen

The markup declaration open state.

case CommentStart

case CommentStart

The comment start state.

case CommentStartDash

case CommentStartDash

The comment start dash state.

case Comment

case Comment

The comment state.

case CommentLessThanSign

case CommentLessThanSign

The comment less-than sign state.

case CommentLessThanSignBang

case CommentLessThanSignBang

The comment less-than sign bang state.

case CommentLessThanSignBangDash

case CommentLessThanSignBangDash

The comment less-than sign bang dash state.

case CommentLessThanSignBangDashDash

case CommentLessThanSignBangDashDash

The comment less-than sign bang dash dash state.

case CommentEndDash

case CommentEndDash

The comment end dash state.

case CommentEnd

case CommentEnd

The comment end state.

case CommentEndBang

case CommentEndBang

The comment end bang state.

case Doctype

case Doctype

The DOCTYPE state.

case BeforeDoctypeName

case BeforeDoctypeName

The before DOCTYPE name state.

case DoctypeName

case DoctypeName

The DOCTYPE name state.

case AfterDoctypeName

case AfterDoctypeName

The after DOCTYPE name state.

case AfterDoctypePublicKeyword

case AfterDoctypePublicKeyword

The after DOCTYPE public keyword state.

case BeforeDoctypePublicIdentifier

case BeforeDoctypePublicIdentifier

The before DOCTYPE public identifier state.

case DoctypePublicIdentifierDoubleQuoted

case DoctypePublicIdentifierDoubleQuoted

The DOCTYPE public identifier (double-quoted) state.

case DoctypePublicIdentifierSingleQuoted

case DoctypePublicIdentifierSingleQuoted

The DOCTYPE public identifier (single-quoted) state.

case AfterDoctypePublicIdentifier

case AfterDoctypePublicIdentifier

The after DOCTYPE public identifier state.

case BetweenDoctypePublicAndSystemIdentifiers

case BetweenDoctypePublicAndSystemIdentifiers

The between DOCTYPE public and system identifiers state.

case AfterDoctypeSystemKeyword

case AfterDoctypeSystemKeyword

The after DOCTYPE system keyword state.

case BeforeDoctypeSystemIdentifier

case BeforeDoctypeSystemIdentifier

The before DOCTYPE system identifier state.

case DoctypeSystemIdentifierDoubleQuoted

case DoctypeSystemIdentifierDoubleQuoted

The DOCTYPE system identifier (double-quoted) state.

case DoctypeSystemIdentifierSingleQuoted

case DoctypeSystemIdentifierSingleQuoted

The DOCTYPE system identifier (single-quoted) state.

case AfterDoctypeSystemIdentifier

case AfterDoctypeSystemIdentifier

The after DOCTYPE system identifier state.

case BogusDoctype

case BogusDoctype

The bogus DOCTYPE state.

case CdataSection

case CdataSection

The CDATA section state.

case CdataSectionBracket

case CdataSectionBracket

The CDATA section bracket state.

case CdataSectionEnd

case CdataSectionEnd

The CDATA section end state.

case CharacterReference

case CharacterReference

The character reference state.

case NamedCharacterReference

case NamedCharacterReference

The named character reference state.

case AmbiguousAmpersand

case AmbiguousAmpersand

The ambiguous ampersand state.

case NumericCharacterReference

case NumericCharacterReference

The numeric character reference state.

case HexadecimalCharacterReferenceStart

case HexadecimalCharacterReferenceStart

The hexadecimal character reference start state.

case DecimalCharacterReferenceStart

case DecimalCharacterReferenceStart

The decimal character reference start state.

case HexadecimalCharacterReference

case HexadecimalCharacterReference

The hexadecimal character reference state.

case DecimalCharacterReference

case DecimalCharacterReference

The decimal character reference state.

case NumericCharacterReferenceEnd

case NumericCharacterReferenceEnd

The numeric character reference end state.