Module parser

Source
Expand description

This module parses literal html returns sauron dom tree

Enums§

ParseError
all the possible error when parsing html string

Functions§

is_self_closing
Returns true if this html tag is self closing
match_attribute_function
return the static str of this function name
parse
Parse html string and convert it into sauron Node
parse_simple
the document is not wrapped with html
tag_namespace
Find the namespace of this tag if the arg tag is an SVG tag, return the svg namespace html tags don’t need to have namespace while svg does, otherwise it will not be properly mounted into the DOM