struct Lexbor::Tokenizer::Token

Overview

Html token without processing (raw attribute keys, html entities not converted)

Defined in:

lexbor/tokenizer/token.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(state : Lexbor::Tokenizer::State, raw_token : Lexbor::Lib::HtmlToken) #

[View source]

Class Method Detail

def self.from_raw(state, raw_token) : Token | Nil #

[View source]

Instance Method Detail

def any_attribute? #

[View source]
def attribute_by(name : String) #

[View source]
def attribute_by(slice : Slice) #

[View source]
def attributes #

[View source]
def closed? #

[View source]
def each_attribute(&) #

[View source]
def each_sliced_attribute(&) #

[View source]
def inspect(io : IO) #

Token Inspect puts token.inspect # => Lexbor::Tokenizer::Token(div, {"class" => "aaa"})


[View source]
def self_closed? #

[View source]
def tag_id #

[View source]
def tag_name #

[View source]
def tag_name_slice #

[View source]
def tag_sym : Symbol #

[View source]
def tag_text #

[View source]
def tag_text_input_slice #

[View source]
def tag_text_slice #

[View source]
def textable? #

[View source]
def to_html(io) #

[View source]
def to_html #

[View source]