class

JustHTML::Tokenizer

Inherits Reference < Object

Constructors

new(sink : TokenSink, collect_errors : Bool = false)
Source

Instance methods

errors
Source
has_attribute?(attr : String) : Bool

Helper to check if element has specific attribute

Source
run(html : String) : Nil
Source
set_last_start_tag_name(name : String) : Nil

Public method to set the last start tag name for appropriate end tag matching

Source
set_state(state : State) : Nil

Public method to allow tree builder to switch tokenizer state

Source

Nested types