function parseDocument(data, options) {
    const handler = new DomHandler(undefined, options);
    new Parser(handler, options).end(data);
    return handler.root;
}
/**
 * Parses the data, returns the resulting document.
 *
 * @param data The data that should be parsed.
 * @param options Optional options for the parser and DOM builder.
 */
Parses the data, returns the resulting document.
@param data The data that should be parsed.
@param options Optional options for the parser and DOM builder.
Parses the data returns the resulting document . @param data The data that should be parsed . @param options Optional options for the parser and DOM builder .
function parseDocument(data, options) {
    const handler = new DomHandler(undefined, options);
    new Parser(handler, options).end(data);
    return handler.root;
}
function parseDocument ( data , options ) { const handler = new DomHandler ( undefined , options ) ; new Parser ( handler , options ) . end ( data ) ; return handler . root ; }
Parses the data, returns the resulting document.
Parses the data returns the resulting document .