/** * @typedef ErrorInfo * Info on a `parse5` error. * @property {string} reason * Reason of error. * @property {string} description * More info on error. * @property {false} [url] * Turn off if this is not documented in the html5 spec (optional). */ export const errors = { /** @type {ErrorInfo} */ abandonedHeadElementChild: { reason: 'Unexpected metadata element after head', description: 'Unexpected element after head. Expected the element before ``', url: false }, /** @type {ErrorInfo} */ abruptClosingOfEmptyComment: { reason: 'Unexpected abruptly closed empty comment', description: 'Unexpected `>` or `->`. Expected `-->` to close comments' }, /** @type {ErrorInfo} */ abruptDoctypePublicIdentifier: { reason: 'Unexpected abruptly closed public identifier', description: 'Unexpected `>`. Expected a closing `"` or `\'` after the public identifier' }, /** @type {ErrorInfo} */ abruptDoctypeSystemIdentifier: { reason: 'Unexpected abruptly closed system identifier', description: 'Unexpected `>`. Expected a closing `"` or `\'` after the identifier identifier' }, /** @type {ErrorInfo} */ absenceOfDigitsInNumericCharacterReference: { reason: 'Unexpected non-digit at start of numeric character reference', description: 'Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references' }, /** @type {ErrorInfo} */ cdataInHtmlContent: { reason: 'Unexpected CDATA section in HTML', description: 'Unexpected `` in ``', description: 'Unexpected text character `%c`. Only use text in `