class HTML5::Tokenizer

Overview

Tokenizer returns a stream of HTML Tokens

Defined in:

html5/token.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(r : IO, context_tag : String) #

returns a new HTML5 Tokenizer for the given IO Reader, for tokenizing an existing element's InnerHTML fragment. context_tag is that element's tag, such as "div" or "iframe".

For example, how the InnerHTML "a<b" is tokenized depends on whether it is for a

or a