HtmlUnitParser
Defined in: parse/html/parser.ts:90
HTML unit parser implementation using handler registry
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new HtmlUnitParser(
registry):HtmlUnitParser
Defined in: parse/html/parser.ts:96
Parameters
Section titled “Parameters”registry
Section titled “registry”ParseHandlerRegistry = defaultRegistry
Returns
Section titled “Returns”HtmlUnitParser
Properties
Section titled “Properties”format
Section titled “format”
readonlyformat:"html"
Defined in: parse/html/parser.ts:91
Format this parser handles
Implementation of
Section titled “Implementation of”Methods
Section titled “Methods”parse()
Section titled “parse()”Defined in: parse/html/parser.ts:103
Parse HTML unit to AST blocks
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”parseWithDiagnostics()
Section titled “parseWithDiagnostics()”parseWithDiagnostics(
unit):HtmlParseResult
Defined in: parse/html/parser.ts:110
Parse HTML unit to AST blocks with diagnostics
Parameters
Section titled “Parameters”Returns
Section titled “Returns”HtmlParseResult