class

JustHTML::FragmentBuilder

Inherits JustHTML::TokenSink < Reference < Object

FragmentBuilder parses HTML fragments into DocumentFragment nodes

Constructors

new(context_name : String = "body", context_namespace : String = "html", collect_errors : Bool = false)
Source

Class methods

parse(html : String, context : String = "body", context_namespace : String = "html", collect_errors : Bool = false) : DocumentFragment
Source

Instance methods

errors
Source
fragment
Source
open_elements
Source
process_characters(data : String) : Nil
Source
process_comment(comment : CommentToken) : Nil
Source
process_doctype(doctype : Doctype) : Nil
Source
process_eof
Source
process_tag(tag : Tag) : Nil
Source
set_tokenizer(tokenizer : Tokenizer) : Nil
Source