error-codes.js 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. 'use strict';
  2. module.exports = {
  3. controlCharacterInInputStream: 'control-character-in-input-stream',
  4. noncharacterInInputStream: 'noncharacter-in-input-stream',
  5. surrogateInInputStream: 'surrogate-in-input-stream',
  6. nonVoidHtmlElementStartTagWithTrailingSolidus: 'non-void-html-element-start-tag-with-trailing-solidus',
  7. endTagWithAttributes: 'end-tag-with-attributes',
  8. endTagWithTrailingSolidus: 'end-tag-with-trailing-solidus',
  9. unexpectedSolidusInTag: 'unexpected-solidus-in-tag',
  10. unexpectedNullCharacter: 'unexpected-null-character',
  11. unexpectedQuestionMarkInsteadOfTagName: 'unexpected-question-mark-instead-of-tag-name',
  12. invalidFirstCharacterOfTagName: 'invalid-first-character-of-tag-name',
  13. unexpectedEqualsSignBeforeAttributeName: 'unexpected-equals-sign-before-attribute-name',
  14. missingEndTagName: 'missing-end-tag-name',
  15. unexpectedCharacterInAttributeName: 'unexpected-character-in-attribute-name',
  16. unknownNamedCharacterReference: 'unknown-named-character-reference',
  17. missingSemicolonAfterCharacterReference: 'missing-semicolon-after-character-reference',
  18. unexpectedCharacterAfterDoctypeSystemIdentifier: 'unexpected-character-after-doctype-system-identifier',
  19. unexpectedCharacterInUnquotedAttributeValue: 'unexpected-character-in-unquoted-attribute-value',
  20. eofBeforeTagName: 'eof-before-tag-name',
  21. eofInTag: 'eof-in-tag',
  22. missingAttributeValue: 'missing-attribute-value',
  23. missingWhitespaceBetweenAttributes: 'missing-whitespace-between-attributes',
  24. missingWhitespaceAfterDoctypePublicKeyword: 'missing-whitespace-after-doctype-public-keyword',
  25. missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:
  26. 'missing-whitespace-between-doctype-public-and-system-identifiers',
  27. missingWhitespaceAfterDoctypeSystemKeyword: 'missing-whitespace-after-doctype-system-keyword',
  28. missingQuoteBeforeDoctypePublicIdentifier: 'missing-quote-before-doctype-public-identifier',
  29. missingQuoteBeforeDoctypeSystemIdentifier: 'missing-quote-before-doctype-system-identifier',
  30. missingDoctypePublicIdentifier: 'missing-doctype-public-identifier',
  31. missingDoctypeSystemIdentifier: 'missing-doctype-system-identifier',
  32. abruptDoctypePublicIdentifier: 'abrupt-doctype-public-identifier',
  33. abruptDoctypeSystemIdentifier: 'abrupt-doctype-system-identifier',
  34. cdataInHtmlContent: 'cdata-in-html-content',
  35. incorrectlyOpenedComment: 'incorrectly-opened-comment',
  36. eofInScriptHtmlCommentLikeText: 'eof-in-script-html-comment-like-text',
  37. eofInDoctype: 'eof-in-doctype',
  38. nestedComment: 'nested-comment',
  39. abruptClosingOfEmptyComment: 'abrupt-closing-of-empty-comment',
  40. eofInComment: 'eof-in-comment',
  41. incorrectlyClosedComment: 'incorrectly-closed-comment',
  42. eofInCdata: 'eof-in-cdata',
  43. absenceOfDigitsInNumericCharacterReference: 'absence-of-digits-in-numeric-character-reference',
  44. nullCharacterReference: 'null-character-reference',
  45. surrogateCharacterReference: 'surrogate-character-reference',
  46. characterReferenceOutsideUnicodeRange: 'character-reference-outside-unicode-range',
  47. controlCharacterReference: 'control-character-reference',
  48. noncharacterCharacterReference: 'noncharacter-character-reference',
  49. missingWhitespaceBeforeDoctypeName: 'missing-whitespace-before-doctype-name',
  50. missingDoctypeName: 'missing-doctype-name',
  51. invalidCharacterSequenceAfterDoctypeName: 'invalid-character-sequence-after-doctype-name',
  52. duplicateAttribute: 'duplicate-attribute',
  53. nonConformingDoctype: 'non-conforming-doctype',
  54. missingDoctype: 'missing-doctype',
  55. misplacedDoctype: 'misplaced-doctype',
  56. endTagWithoutMatchingOpenElement: 'end-tag-without-matching-open-element',
  57. closingOfElementWithOpenChildElements: 'closing-of-element-with-open-child-elements',
  58. disallowedContentInNoscriptInHead: 'disallowed-content-in-noscript-in-head',
  59. openElementsLeftAfterEof: 'open-elements-left-after-eof',
  60. abandonedHeadElementChild: 'abandoned-head-element-child',
  61. misplacedStartTagForHeadElement: 'misplaced-start-tag-for-head-element',
  62. nestedNoscriptInHead: 'nested-noscript-in-head',
  63. eofInElementThatCanContainOnlyText: 'eof-in-element-that-can-contain-only-text'
  64. };