struct

Lexbor::Tokenizer::Token

Inherits Struct < Value < Object

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

Constructors

new(state : Lexbor::Tokenizer::State, raw_token : Lexbor::Lib::HtmlToken)
Source

Class methods

from_raw(state, raw_token) : Token | Nil
Source

Instance methods

any_attribute?
Source
attribute_by(name : String)
Source
attribute_by(slice : Slice)
Source
attributes
Source
closed?
Source
each_attribute
Source
each_sliced_attribute
Source
inspect(io : IO)

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

Source
self_closed?
Source
tag_id
Source
tag_name
Source
tag_name_slice
Source
tag_sym
Source
tag_text
Source
tag_text_input_slice
Source
tag_text_slice
Source
textable?
Source
to_html(io)
Source
to_html
Source