struct

Myhtml::SAX::Token

Inherits Struct < Value < Object

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

Constructors

new(tokenizer : Myhtml::SAX::Tokenizer, raw_tree : Pointer(Myhtml::Lib::MyhtmlTreeT), raw_token : Pointer(Myhtml::Lib::MyhtmlTokenNodeT))
Source

Class methods

from_raw(tokenizer, raw_tree, raw_token) : Token | Nil
Source

Instance methods

any_attribute?
Source
attribute_by(string : String)
Source
attribute_by(slice : Slice(UInt8))
Source
attributes
Source
closed?
Source
each_attribute
Source
each_raw_attribute
Source
inspect(io : IO)

Token Inspect puts node.inspect # => Myhtml::SAX::Token(div, {"class" => "aaa"})

Source
post_tag_slice
Source
pre_tag_slice
Source
self_closed?
Source
tag_id
Source
tag_name
Source
tag_name_slice
Source
tag_sym
Source
tag_text
Source
tag_text_slice
Source
textable?
Source