Class: Epic2ChecklistDOMParser
Defined in: workingtitle-instruments-epic2/shared/Checklists/Epic2ChecklistDOMParser.ts:16
A checklist DOM parser specific for Epic 2 checklists
Constructors
Constructor
new Epic2ChecklistDOMParser():
Epic2ChecklistDOMParser
Returns
Epic2ChecklistDOMParser
Methods
parse()
parse(
element
,options?
):Epic2ChecklistDef
Defined in: workingtitle-instruments-epic2/shared/Checklists/Epic2ChecklistDOMParser.ts:28
Parses the Epic2 checklist definition specified by a DOM element.
Parameters
Parameter | Type | Description |
---|---|---|
element | Element | The element to parse. |
options? | Readonly <Epic2ChecklistDOMParserParseOptions > | Options to apply to the parsing operation. |
Returns
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.