|
141 | 141 | "input":"<!\u0000",
|
142 | 142 | "output":[["Comment", "\uFFFD"]],
|
143 | 143 | "errors":[
|
144 |
| - { "code": "incorrectly-opened-comment", "line": 1, "col": 3 } |
| 144 | + { "code": "incorrectly-opened-comment", "line": 1, "col": 3 }, |
| 145 | + { "code": "unexpected-null-character", "line": 1, "col": 3 } |
145 | 146 | ]},
|
146 | 147 |
|
147 | 148 | {"description":"<!\\u0009",
|
|
180 | 181 | { "code": "incorrectly-opened-comment", "line": 1, "col": 3 }
|
181 | 182 | ]},
|
182 | 183 |
|
| 184 | +{"description":"<! \\u0000", |
| 185 | +"input":"<! \u0000", |
| 186 | +"output":[["Comment", " \uFFFD"]], |
| 187 | +"errors":[ |
| 188 | + { "code": "incorrectly-opened-comment", "line": 1, "col": 3 }, |
| 189 | + { "code": "unexpected-null-character", "line": 1, "col": 4 } |
| 190 | +]}, |
| 191 | + |
183 | 192 | {"description":"<!!",
|
184 | 193 | "input":"<!!",
|
185 | 194 | "output":[["Comment", "!"]],
|
|
1887 | 1896 | "input":"<!DOCTYPE a \u0000",
|
1888 | 1897 | "output":[["DOCTYPE", "a", null, null, false]],
|
1889 | 1898 | "errors":[
|
1890 |
| - { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 13 } |
| 1899 | + { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 13 }, |
| 1900 | + { "code": "unexpected-null-character", "line": 1, "col": 13 } |
1891 | 1901 | ]},
|
1892 | 1902 |
|
1893 | 1903 | {"description":"<!DOCTYPE a \\u0008",
|
|
2069 | 2079 | "input":"<!DOCTYPE a PUBLIC\u0000",
|
2070 | 2080 | "output":[["DOCTYPE", "a", null, null, false]],
|
2071 | 2081 | "errors": [
|
2072 |
| - { "code": "missing-quote-before-doctype-public-identifier", "col": 19, "line": 1 } |
| 2082 | + { "code": "missing-quote-before-doctype-public-identifier", "col": 19, "line": 1 }, |
| 2083 | + { "code": "unexpected-null-character", "line": 1, "col": 19 } |
2073 | 2084 | ]},
|
2074 | 2085 |
|
2075 | 2086 | {"description":"<!DOCTYPE a PUBLIC\\u0008",
|
|
2213 | 2224 | { "code": "eof-in-doctype", "col": 21, "line": 1 }
|
2214 | 2225 | ]},
|
2215 | 2226 |
|
| 2227 | +{"description":"<!DOCTYPE a PUBLIC\"\"\\u0000", |
| 2228 | +"input":"<!DOCTYPE a PUBLIC\"\"\u0000", |
| 2229 | +"output":[["DOCTYPE", "a", "", null, false]], |
| 2230 | +"errors": [ |
| 2231 | + { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 }, |
| 2232 | + { "code": "missing-quote-before-doctype-system-identifier", "col": 21, "line": 1 }, |
| 2233 | + { "code": "unexpected-null-character", "col": 21, "line": 1 } |
| 2234 | +]}, |
| 2235 | + |
| 2236 | +{"description":"<!DOCTYPE a PUBLIC\"\" \\u0000", |
| 2237 | +"input":"<!DOCTYPE a PUBLIC\"\" \u0000", |
| 2238 | +"output":[["DOCTYPE", "a", "", null, false]], |
| 2239 | +"errors": [ |
| 2240 | + { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 }, |
| 2241 | + { "code": "missing-quote-before-doctype-system-identifier", "col": 22, "line": 1 }, |
| 2242 | + { "code": "unexpected-null-character", "col": 22, "line": 1 } |
| 2243 | +]}, |
| 2244 | + |
2216 | 2245 | {"description":"<!DOCTYPE a PUBLIC\"#",
|
2217 | 2246 | "input":"<!DOCTYPE a PUBLIC\"#",
|
2218 | 2247 | "output":[["DOCTYPE", "a", "#", null, false]],
|
|
2514 | 2543 | "output":[["DOCTYPE", "a", "", null, false]],
|
2515 | 2544 | "errors": [
|
2516 | 2545 | { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 },
|
2517 |
| - { "code": "missing-quote-before-doctype-system-identifier", "col": 21, "line": 1 } |
| 2546 | + { "code": "missing-quote-before-doctype-system-identifier", "col": 21, "line": 1 }, |
| 2547 | + { "code": "unexpected-null-character", "line": 1, "col": 21 } |
2518 | 2548 | ]},
|
2519 | 2549 |
|
2520 | 2550 | {"description":"<!DOCTYPE a PUBLIC''\\u0008",
|
|
2626 | 2656 | { "code": "eof-in-doctype", "col": 22, "line": 1 }
|
2627 | 2657 | ]},
|
2628 | 2658 |
|
| 2659 | +{"description":"<!DOCTYPE a PUBLIC''''\\u0000", |
| 2660 | +"input":"<!DOCTYPE a PUBLIC''''\u0000", |
| 2661 | +"output":[["DOCTYPE", "a", "", "", true]], |
| 2662 | +"errors": [ |
| 2663 | + { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 }, |
| 2664 | + { "code": "missing-whitespace-between-doctype-public-and-system-identifiers", "col": 21, "line": 1 }, |
| 2665 | + { "code": "unexpected-character-after-doctype-system-identifier", "line": 1, "col": 23 }, |
| 2666 | + { "code": "unexpected-null-character", "line": 1, "col": 23 } |
| 2667 | +]}, |
| 2668 | + |
| 2669 | +{"description":"<!DOCTYPE a PUBLIC''''x\\u0000", |
| 2670 | +"input":"<!DOCTYPE a PUBLIC''''x\u0000", |
| 2671 | +"output":[["DOCTYPE", "a", "", "", true]], |
| 2672 | +"errors": [ |
| 2673 | + { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 }, |
| 2674 | + { "code": "missing-whitespace-between-doctype-public-and-system-identifiers", "col": 21, "line": 1 }, |
| 2675 | + { "code": "unexpected-character-after-doctype-system-identifier", "line": 1, "col": 23 }, |
| 2676 | + { "code": "unexpected-null-character", "line": 1, "col": 24 } |
| 2677 | +]}, |
| 2678 | + |
| 2679 | +{"description":"<!DOCTYPE a PUBLIC'''' \\u0000", |
| 2680 | +"input":"<!DOCTYPE a PUBLIC'''' \u0000", |
| 2681 | +"output":[["DOCTYPE", "a", "", "", true]], |
| 2682 | +"errors": [ |
| 2683 | + { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 }, |
| 2684 | + { "code": "missing-whitespace-between-doctype-public-and-system-identifiers", "col": 21, "line": 1 }, |
| 2685 | + { "code": "unexpected-character-after-doctype-system-identifier", "line": 1, "col": 24 }, |
| 2686 | + { "code": "unexpected-null-character", "line": 1, "col": 24 } |
| 2687 | +]}, |
| 2688 | + |
| 2689 | +{"description":"<!DOCTYPE a PUBLIC'''' x\\u0000", |
| 2690 | +"input":"<!DOCTYPE a PUBLIC'''' x\u0000", |
| 2691 | +"output":[["DOCTYPE", "a", "", "", true]], |
| 2692 | +"errors": [ |
| 2693 | + { "code": "missing-whitespace-after-doctype-public-keyword", "col": 19, "line": 1 }, |
| 2694 | + { "code": "missing-whitespace-between-doctype-public-and-system-identifiers", "col": 21, "line": 1 }, |
| 2695 | + { "code": "unexpected-character-after-doctype-system-identifier", "line": 1, "col": 24 }, |
| 2696 | + { "code": "unexpected-null-character", "line": 1, "col": 25 } |
| 2697 | +]}, |
| 2698 | + |
2629 | 2699 | {"description":"<!DOCTYPE a PUBLIC''(",
|
2630 | 2700 | "input":"<!DOCTYPE a PUBLIC''(",
|
2631 | 2701 | "output":[["DOCTYPE", "a", "", null, false]],
|
|
3142 | 3212 | "input":"<!DOCTYPE a SYSTEM\u0000",
|
3143 | 3213 | "output":[["DOCTYPE", "a", null, null, false]],
|
3144 | 3214 | "errors": [
|
3145 |
| - { "code": "missing-quote-before-doctype-system-identifier", "col": 19, "line": 1 } |
| 3215 | + { "code": "missing-quote-before-doctype-system-identifier", "col": 19, "line": 1 }, |
| 3216 | + { "code": "unexpected-null-character", "line": 1, "col": 19 } |
| 3217 | +]}, |
| 3218 | + |
| 3219 | +{"description":"<!DOCTYPE a SYSTEM \\u0000", |
| 3220 | +"input":"<!DOCTYPE a SYSTEM \u0000", |
| 3221 | +"output":[["DOCTYPE", "a", null, null, false]], |
| 3222 | +"errors": [ |
| 3223 | + { "code": "missing-quote-before-doctype-system-identifier", "col": 20, "line": 1 }, |
| 3224 | + { "code": "unexpected-null-character", "line": 1, "col": 20 } |
| 3225 | +]}, |
| 3226 | + |
| 3227 | +{"description":"<!DOCTYPE a SYSTEM x\\u0000", |
| 3228 | +"input":"<!DOCTYPE a SYSTEM \u0000", |
| 3229 | +"output":[["DOCTYPE", "a", null, null, false]], |
| 3230 | +"errors": [ |
| 3231 | + { "code": "missing-quote-before-doctype-system-identifier", "col": 20, "line": 1 }, |
| 3232 | + { "code": "unexpected-null-character", "line": 1, "col": 20 } |
3146 | 3233 | ]},
|
3147 | 3234 |
|
3148 | 3235 | {"description":"<!DOCTYPE a SYSTEM\\u0008",
|
|
3586 | 3673 | "output":[["DOCTYPE", "a", null, "", true]],
|
3587 | 3674 | "errors":[
|
3588 | 3675 | { "code": "missing-whitespace-after-doctype-system-keyword", "line": 1, "col": 19 },
|
3589 |
| - { "code": "unexpected-character-after-doctype-system-identifier", "col": 21, "line": 1 } |
| 3676 | + { "code": "unexpected-character-after-doctype-system-identifier", "col": 21, "line": 1 }, |
| 3677 | + { "code": "unexpected-null-character", "line": 1, "col": 21 } |
3590 | 3678 | ]},
|
3591 | 3679 |
|
3592 | 3680 | {"description":"<!DOCTYPE a SYSTEM''\\u0008",
|
|
3656 | 3744 | { "code": "eof-in-doctype", "col": 22, "line": 1 }
|
3657 | 3745 | ]},
|
3658 | 3746 |
|
| 3747 | +{"description":"<!DOCTYPE a SYSTEM'' \\u0000", |
| 3748 | +"input":"<!DOCTYPE a SYSTEM'' \u0000", |
| 3749 | +"output":[["DOCTYPE", "a", null, "", true]], |
| 3750 | +"errors":[ |
| 3751 | + { "code": "missing-whitespace-after-doctype-system-keyword", "line": 1, "col": 19 }, |
| 3752 | + { "code": "unexpected-character-after-doctype-system-identifier", "col": 22, "line": 1 }, |
| 3753 | + { "code": "unexpected-null-character", "line": 1, "col": 22 } |
| 3754 | +]}, |
| 3755 | + |
| 3756 | +{"description":"<!DOCTYPE a SYSTEM'' x\\u0000", |
| 3757 | +"input":"<!DOCTYPE a SYSTEM'' x\u0000", |
| 3758 | +"output":[["DOCTYPE", "a", null, "", true]], |
| 3759 | +"errors":[ |
| 3760 | + { "code": "missing-whitespace-after-doctype-system-keyword", "line": 1, "col": 19 }, |
| 3761 | + { "code": "unexpected-character-after-doctype-system-identifier", "col": 22, "line": 1 }, |
| 3762 | + { "code": "unexpected-null-character", "line": 1, "col": 23 } |
| 3763 | +]}, |
| 3764 | + |
3659 | 3765 | {"description":"<!DOCTYPE a SYSTEM''!",
|
3660 | 3766 | "input":"<!DOCTYPE a SYSTEM''!",
|
3661 | 3767 | "output":[["DOCTYPE", "a", null, "", true]],
|
|
4217 | 4323 | "input":"<!DOCTYPE a a\u0000",
|
4218 | 4324 | "output":[["DOCTYPE", "a", null, null, false]],
|
4219 | 4325 | "errors":[
|
4220 |
| - { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 13 } |
| 4326 | + { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 13 }, |
| 4327 | + { "code": "unexpected-null-character", "line": 1, "col": 14 } |
4221 | 4328 | ]},
|
4222 | 4329 |
|
4223 | 4330 | {"description":"<!DOCTYPE a a\\u0009",
|
|
4920 | 5027 | "output":[["DOCTYPE", "a", null, null, false]],
|
4921 | 5028 | "errors":[
|
4922 | 5029 | { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 },
|
4923 |
| - { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 12 } |
| 5030 | + { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 12 }, |
| 5031 | + { "code": "unexpected-null-character", "line": 1, "col": 12 } |
4924 | 5032 | ]},
|
4925 | 5033 |
|
4926 | 5034 | {"description":"<!DOCTYPEa \\u0008",
|
|
5130 | 5238 | "output":[["DOCTYPE", "a", null, null, false]],
|
5131 | 5239 | "errors":[
|
5132 | 5240 | { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 },
|
5133 |
| - { "code": "missing-quote-before-doctype-public-identifier", "line": 1, "col": 18 } |
| 5241 | + { "code": "missing-quote-before-doctype-public-identifier", "line": 1, "col": 18 }, |
| 5242 | + { "code": "unexpected-null-character", "line": 1, "col": 18 } |
5134 | 5243 | ]},
|
5135 | 5244 |
|
5136 | 5245 | {"description":"<!DOCTYPEa PUBLIC\\u0008",
|
|
5632 | 5741 | "errors":[
|
5633 | 5742 | { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 },
|
5634 | 5743 | { "code": "missing-whitespace-after-doctype-public-keyword", "line": 1, "col": 18 },
|
5635 |
| - { "code": "missing-quote-before-doctype-system-identifier", "line": 1, "col": 20 } |
| 5744 | + { "code": "missing-quote-before-doctype-system-identifier", "line": 1, "col": 20 }, |
| 5745 | + { "code": "unexpected-null-character", "line": 1, "col": 20 } |
5636 | 5746 | ]},
|
5637 | 5747 |
|
5638 | 5748 | {"description":"<!DOCTYPEa PUBLIC''\\u0008",
|
|
6341 | 6451 | "output":[["DOCTYPE", "a", null, null, false]],
|
6342 | 6452 | "errors":[
|
6343 | 6453 | { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 },
|
6344 |
| - { "code": "missing-quote-before-doctype-system-identifier", "line": 1, "col": 18 } |
| 6454 | + { "code": "missing-quote-before-doctype-system-identifier", "line": 1, "col": 18 }, |
| 6455 | + { "code": "unexpected-null-character", "line": 1, "col": 18 } |
6345 | 6456 | ]},
|
6346 | 6457 |
|
6347 | 6458 | {"description":"<!DOCTYPEa SYSTEM\\u0008",
|
|
6842 | 6953 | "errors":[
|
6843 | 6954 | { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 },
|
6844 | 6955 | { "code": "missing-whitespace-after-doctype-system-keyword", "line": 1, "col": 18 },
|
6845 |
| - { "code": "unexpected-character-after-doctype-system-identifier", "line": 1, "col": 20 } |
| 6956 | + { "code": "unexpected-character-after-doctype-system-identifier", "line": 1, "col": 20 }, |
| 6957 | + { "code": "unexpected-null-character", "line": 1, "col": 20 } |
6846 | 6958 | ]},
|
6847 | 6959 |
|
6848 | 6960 | {"description":"<!DOCTYPEa SYSTEM''\\u0008",
|
|
7555 | 7667 | "output":[["DOCTYPE", "a", null, null, false]],
|
7556 | 7668 | "errors":[
|
7557 | 7669 | { "code": "missing-whitespace-before-doctype-name", "line": 1, "col": 10 },
|
7558 |
| - { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 12 } |
| 7670 | + { "code": "invalid-character-sequence-after-doctype-name", "line": 1, "col": 12 }, |
| 7671 | + { "code": "unexpected-null-character", "line": 1, "col": 13 } |
7559 | 7672 | ]},
|
7560 | 7673 |
|
7561 | 7674 | {"description":"<!DOCTYPEa a\\u0009",
|
|
8195 | 8308 | "input":"</\u0000",
|
8196 | 8309 | "output":[["Comment", "\uFFFD"]],
|
8197 | 8310 | "errors":[
|
8198 |
| - { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 3 } |
| 8311 | + { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 3 }, |
| 8312 | + { "code": "unexpected-null-character", "line": 1, "col": 3 } |
8199 | 8313 | ]},
|
8200 | 8314 |
|
8201 | 8315 | {"description":"</\\u0009",
|
|
8234 | 8348 | { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 3 }
|
8235 | 8349 | ]},
|
8236 | 8350 |
|
| 8351 | +{"description":"</ \\u0000", |
| 8352 | +"input":"</ \u0000", |
| 8353 | +"output":[["Comment", " \uFFFD"]], |
| 8354 | +"errors":[ |
| 8355 | + { "code": "invalid-first-character-of-tag-name", "line": 1, "col": 3 }, |
| 8356 | + { "code": "unexpected-null-character", "line": 1, "col": 4 } |
| 8357 | +]}, |
| 8358 | + |
8237 | 8359 | {"description":"</!",
|
8238 | 8360 | "input":"</!",
|
8239 | 8361 | "output":[["Comment", "!"]],
|
|
8446 | 8568 | "input":"<?\u0000",
|
8447 | 8569 | "output":[["Comment", "?\uFFFD"]],
|
8448 | 8570 | "errors":[
|
8449 |
| - { "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 } |
| 8571 | + { "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 }, |
| 8572 | + { "code": "unexpected-null-character", "line": 1, "col": 3 } |
8450 | 8573 | ]},
|
8451 | 8574 |
|
8452 | 8575 | {"description":"<?\\u0009",
|
|
8485 | 8608 | { "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 }
|
8486 | 8609 | ]},
|
8487 | 8610 |
|
| 8611 | +{"description":"<? \\u0000", |
| 8612 | +"input":"<? \u0000", |
| 8613 | +"output":[["Comment", "? \uFFFD"]], |
| 8614 | +"errors":[ |
| 8615 | + { "code": "unexpected-question-mark-instead-of-tag-name", "line": 1, "col": 2 }, |
| 8616 | + { "code": "unexpected-null-character", "line": 1, "col": 4 } |
| 8617 | +]}, |
| 8618 | + |
8488 | 8619 | {"description":"<?!",
|
8489 | 8620 | "input":"<?!",
|
8490 | 8621 | "output":[["Comment", "?!"]],
|
|
0 commit comments