Skip to main content

Class: G3000ChecklistDOMParser

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Checklist/G3000ChecklistDOMParser.ts:18

A parser of G3000 checklist definitions from DOM elements.

Constructors​

Constructor​

new G3000ChecklistDOMParser(): G3000ChecklistDOMParser

Returns​

G3000ChecklistDOMParser

Methods​

parse()​

parse(element, options?): G3000ChecklistSetDef

Defined in: src/workingtitle-instruments-g3000/html_ui/Shared/Checklist/G3000ChecklistDOMParser.ts:30

Parses the G3000 checklist definition specified by a DOM element.

Parameters​

ParameterTypeDescription
elementElementThe element to parse.
options?Readonly<G3000ChecklistDOMParserParseOptions>Options to apply to the parsing operation.

Returns​

G3000ChecklistSetDef

The checklist definition parsed from the specified element.

Throws​

Error if the parsing operation encounters an unrecoverable syntax error or if the errorInsteadOfDiscard option is enabled and the operation encounters a syntax error that would normally cause a definition to be discarded.