enum HTML5::TokenType

Defined in:

html5/token.cr

Enum Members

Error = 0_u32

Error means that an error occurred during tokenization

Text = 1_u32

Text means a text node

StartTag = 2_u32

StartTag looks like

EndTag = 3_u32

EndTag looks like

SelfClosingTag = 4_u32

SelfClosing tag looks like

Comment = 5_u32

Comment looks like

Doctype = 6_u32

Doctype looks like

Instance Method Summary

Instance Method Detail

def comment? #

[View source]
def doctype? #

[View source]
def end_tag? #

[View source]
def error? #

[View source]
def self_closing_tag? #

[View source]
def start_tag? #

[View source]
def text? #

[View source]