',
- options: [{ 'missing-whitespace-between-attributes': false }],
- errors: ['Parsing error: missing-whitespace-between-attributes.']
+ options: [{ 'missing-whitespace-between-attributes': false }]
},
{
code: '
',
- options: [{ 'nested-comment': false }],
- errors: ['Parsing error: nested-comment.']
+ options: [{ 'nested-comment': false }]
},
{
code: '
',
- options: [{ 'noncharacter-character-reference': false }],
- errors: ['Parsing error: noncharacter-character-reference.']
+ options: [{ 'noncharacter-character-reference': false }]
},
{
code: '
\uFFFE',
- options: [{ 'noncharacter-in-input-stream': false }],
- errors: ['Parsing error: noncharacter-in-input-stream.']
+ options: [{ 'noncharacter-in-input-stream': false }]
},
{
code: '
',
- options: [{ 'null-character-reference': false }],
- errors: ['Parsing error: null-character-reference.']
+ options: [{ 'null-character-reference': false }]
},
{
code: '
',
- options: [{ 'surrogate-character-reference': false }],
- errors: ['Parsing error: surrogate-character-reference.']
+ options: [{ 'surrogate-character-reference': false }]
},
{
code: '
\uD800',
- options: [{ 'surrogate-in-input-stream': false }],
- errors: ['Parsing error: surrogate-in-input-stream.']
+ options: [{ 'surrogate-in-input-stream': false }]
},
{
code: '
',
- options: [{ 'unexpected-character-in-attribute-name': false }],
- errors: ['Parsing error: unexpected-character-in-attribute-name.']
+ options: [{ 'unexpected-character-in-attribute-name': false }]
},
{
code: '
',
- options: [{ 'unexpected-character-in-unquoted-attribute-value': false }],
- errors: ['Parsing error: unexpected-character-in-unquoted-attribute-value.']
+ options: [{ 'unexpected-character-in-unquoted-attribute-value': false }]
},
{
code: '
',
- options: [{ 'unexpected-equals-sign-before-attribute-name': false }],
- errors: ['Parsing error: unexpected-equals-sign-before-attribute-name.']
+ options: [{ 'unexpected-equals-sign-before-attribute-name': false }]
},
{
code: '
\u0000',
- options: [{ 'unexpected-null-character': false }],
- errors: ['Parsing error: unexpected-null-character.']
+ options: [{ 'unexpected-null-character': false }]
},
{
code: '
',
- options: [{ 'unexpected-question-mark-instead-of-tag-name': false }],
- errors: ['Parsing error: unexpected-question-mark-instead-of-tag-name.']
+ options: [{ 'unexpected-question-mark-instead-of-tag-name': false }]
},
{
code: '
',
- options: [{ 'unexpected-solidus-in-tag': false }],
- errors: ['Parsing error: unexpected-solidus-in-tag.']
+ options: [{ 'unexpected-solidus-in-tag': false }]
},
{
code: '
&unknown;',
- options: [{ 'unknown-named-character-reference': false }],
- errors: ['Parsing error: unknown-named-character-reference.']
+ options: [{ 'unknown-named-character-reference': false }]
},
{
code: '
',
- options: [{ 'end-tag-with-attributes': false }],
- errors: ['Parsing error: end-tag-with-attributes.']
+ options: [{ 'end-tag-with-attributes': false }]
},
{
code: '
',
- options: [{ 'duplicate-attribute': false }],
- errors: ['Parsing error: duplicate-attribute.']
+ options: [{ 'duplicate-attribute': false }]
},
{
code: '
',
- options: [{ 'end-tag-with-trailing-solidus': false }],
- errors: ['Parsing error: end-tag-with-trailing-solidus.']
+ options: [{ 'end-tag-with-trailing-solidus': false }]
},
{
code: '
',
- options: [{ 'non-void-html-element-start-tag-with-trailing-solidus': false }],
- errors: ['Parsing error: non-void-html-element-start-tag-with-trailing-solidus.']
+ options: [{ 'non-void-html-element-start-tag-with-trailing-solidus': false }]
},
{
code: '
',
@@ -237,9 +204,9 @@ tester.run('no-parsing-error', rule, {
},
{
code: '
',
- options: [{ 'x-invalid-namespace': false }],
- errors: ['Parsing error: x-invalid-namespace.']
- }
+ options: [{ 'x-invalid-namespace': false }]
+ },
+ '
'
],
invalid: [
{
@@ -474,6 +441,150 @@ tester.run('no-parsing-error', rule, {
code: '
',
options: [{ 'x-invalid-namespace': true }],
errors: ['Parsing error: x-invalid-namespace.']
+ },
+ {
+ code: `
`,
+ errors: ['Parsing error: abrupt-closing-of-empty-comment.']
+ },
+ {
+ code: `
`,
+ errors: ['Parsing error: abrupt-closing-of-empty-comment.']
+ },
+ {
+ code: `
qux;`,
+ errors: ['Parsing error: absence-of-digits-in-numeric-character-reference.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: cdata-in-html-content.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: character-reference-outside-unicode-range.']
+ },
+ {
+ code: '
\u0003',
+ errors: ['Parsing error: control-character-in-input-stream.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: control-character-reference.']
+ },
+ {
+ code: '
<',
+ errors: ['Parsing error: eof-before-tag-name.']
+ },
+ {
+ code: '',
+ errors: ['Parsing error: incorrectly-closed-comment.']
+ },
+ {
+ code: '',
+ errors: ['Parsing error: incorrectly-opened-comment.']
+ },
+ {
+ code: '<👍>/template>',
+ errors: ['Parsing error: invalid-first-character-of-tag-name.']
+ },
+ {
+ code: '',
+ errors: ['Parsing error: missing-attribute-value.']
+ },
+ {
+ code: '
>',
+ errors: ['Parsing error: missing-end-tag-name.']
+ },
+ {
+ code: '
&',
+ errors: ['Parsing error: missing-semicolon-after-character-reference.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: missing-whitespace-between-attributes.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: nested-comment.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: noncharacter-character-reference.']
+ },
+ {
+ code: '
\uFFFE',
+ errors: ['Parsing error: noncharacter-in-input-stream.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: null-character-reference.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: surrogate-character-reference.']
+ },
+ {
+ code: '
\uD800',
+ errors: ['Parsing error: surrogate-in-input-stream.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: unexpected-character-in-attribute-name.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: unexpected-character-in-unquoted-attribute-value.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: unexpected-equals-sign-before-attribute-name.']
+ },
+ {
+ code: '
\u0000',
+ errors: ['Parsing error: unexpected-null-character.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: unexpected-question-mark-instead-of-tag-name.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: unexpected-solidus-in-tag.']
+ },
+ {
+ code: '
&unknown;',
+ errors: ['Parsing error: unknown-named-character-reference.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: end-tag-with-attributes.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: duplicate-attribute.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: end-tag-with-trailing-solidus.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: x-invalid-end-tag.']
+ },
+ {
+ code: '
',
+ errors: ['Parsing error: x-invalid-namespace.']
}
]
})