nwex.de/html/errors.ts

20 lines
1.2 KiB
TypeScript
Raw Normal View History

// FIXME: Convert to const enum
export type ParseError = 'unexpected-null-character' |
'unexpected-question-mark-instead-of-tag-name' |
'eof-before-tag-name' |
'invalid-first-character-of-tag-name' |
'missing-end-tag-name' |
'cdata-in-html-content' |
'incorrectly-opened-comment' |
'eof-in-doctype' |
'missing-whitespace-before-doctype-name' |
'eof-in-tag' |
'unexpected-equals-sign-before-attribute-name' |
'unexpected-character-in-attribute-name' |
'missing-attribute-value' |
'unexpected-character-in-unquoted-attribute-value' |
'missing-whitespace-between-attributes' |
'abrupt-closing-of-empty-comment' |
'eof-in-comment' |
'missing-semicolon-after-character-reference' |
'unknown-named-character-reference';