1 |
wakaba |
1.1 |
{"tests": [ |
2 |
|
|
|
3 |
wakaba |
1.3 |
{"description":"<!DOCTYPE", |
4 |
|
|
"input":"<!DOCTYPE", |
5 |
|
|
"output":["ParseError","ParseError",["DOCTYPE", "", true]]}, |
6 |
|
|
|
7 |
|
|
{"description":"<!DOCTYPE ", |
8 |
|
|
"input":"<!DOCTYPE ", |
9 |
|
|
"output":["ParseError",["DOCTYPE", "", true]]}, |
10 |
|
|
|
11 |
|
|
{"description":"<!DOCTYPE >", |
12 |
|
|
"input":"<!DOCTYPE >", |
13 |
|
|
"output":["ParseError",["DOCTYPE", "", true]]}, |
14 |
|
|
|
15 |
|
|
{"description":"<!DOCTYPE h", |
16 |
|
|
"input":"<!DOCTYPE h", |
17 |
|
|
"output":["ParseError",["DOCTYPE", "H", true]]}, |
18 |
|
|
|
19 |
|
|
{"description":"<!DOCTYPE H", |
20 |
|
|
"input":"<!DOCTYPE H", |
21 |
|
|
"output":["ParseError",["DOCTYPE", "H", true]]}, |
22 |
|
|
|
23 |
|
|
{"description":"<!DOCTYPE h>", |
24 |
|
|
"input":"<!DOCTYPE h>", |
25 |
|
|
"output":[["DOCTYPE", "H", true]]}, |
26 |
|
|
|
27 |
|
|
{"description":"<!DOCTYPE H>", |
28 |
|
|
"input":"<!DOCTYPE H>", |
29 |
|
|
"output":[["DOCTYPE", "H", true]]}, |
30 |
|
|
|
31 |
|
|
{"description":"<!DOCTYPE ht", |
32 |
|
|
"input":"<!DOCTYPE ht", |
33 |
|
|
"output":["ParseError",["DOCTYPE", "HT", true]]}, |
34 |
|
|
|
35 |
|
|
{"description":"<!DOCTYPE Ht", |
36 |
|
|
"input":"<!DOCTYPE Ht", |
37 |
|
|
"output":["ParseError",["DOCTYPE", "HT", true]]}, |
38 |
|
|
|
39 |
|
|
{"description":"<!DOCTYPE hT", |
40 |
|
|
"input":"<!DOCTYPE hT", |
41 |
|
|
"output":["ParseError",["DOCTYPE", "HT", true]]}, |
42 |
|
|
|
43 |
|
|
{"description":"<!DOCTYPE ht>", |
44 |
|
|
"input":"<!DOCTYPE ht>", |
45 |
|
|
"output":[["DOCTYPE", "HT", true]]}, |
46 |
|
|
|
47 |
|
|
{"description":"<!DOCTYPE Ht>", |
48 |
|
|
"input":"<!DOCTYPE Ht>", |
49 |
|
|
"output":[["DOCTYPE", "HT", true]]}, |
50 |
|
|
|
51 |
|
|
{"description":"<!DOCTYPE hT>", |
52 |
|
|
"input":"<!DOCTYPE hT>", |
53 |
|
|
"output":[["DOCTYPE", "HT", true]]}, |
54 |
|
|
|
55 |
|
|
{"description":"<!DOCTYPE hT>", |
56 |
|
|
"input":"<!DOCTYPE hT>", |
57 |
|
|
"output":[["DOCTYPE", "HT", true]]}, |
58 |
|
|
|
59 |
|
|
{"description":"<!DOCTYPE htm", |
60 |
|
|
"input":"<!DOCTYPE htm", |
61 |
|
|
"output":["ParseError",["DOCTYPE", "HTM", true]]}, |
62 |
|
|
|
63 |
|
|
{"description":"<!DOCTYPE Htm", |
64 |
|
|
"input":"<!DOCTYPE Htm", |
65 |
|
|
"output":["ParseError",["DOCTYPE", "HTM", true]]}, |
66 |
|
|
|
67 |
|
|
{"description":"<!DOCTYPE hTM", |
68 |
|
|
"input":"<!DOCTYPE hTM", |
69 |
|
|
"output":["ParseError",["DOCTYPE", "HTM", true]]}, |
70 |
|
|
|
71 |
|
|
{"description":"<!DOCTYPE htm>", |
72 |
|
|
"input":"<!DOCTYPE htm>", |
73 |
|
|
"output":[["DOCTYPE", "HTM", true]]}, |
74 |
|
|
|
75 |
|
|
{"description":"<!DOCTYPE Htm>", |
76 |
|
|
"input":"<!DOCTYPE Htm>", |
77 |
|
|
"output":[["DOCTYPE", "HTM", true]]}, |
78 |
|
|
|
79 |
|
|
{"description":"<!DOCTYPE hTM>", |
80 |
|
|
"input":"<!DOCTYPE hTM>", |
81 |
|
|
"output":[["DOCTYPE", "HTM", true]]}, |
82 |
|
|
|
83 |
|
|
{"description":"<!DOCTYPE html5", |
84 |
|
|
"input":"<!DOCTYPE html5", |
85 |
|
|
"output":["ParseError",["DOCTYPE", "HTML5", true]]}, |
86 |
|
|
|
87 |
|
|
{"description":"<!DOCTYPE html5>", |
88 |
|
|
"input":"<!DOCTYPE html5>", |
89 |
|
|
"output":[["DOCTYPE", "HTML5", true]]}, |
90 |
|
|
|
91 |
wakaba |
1.1 |
{"description":"non-PCDATA content model flag, start tag-like string", |
92 |
|
|
"contentModelFlags":["PLAINTEXT","RCDATA","CDATA"], |
93 |
|
|
"input":"<div>", |
94 |
wakaba |
1.2 |
"output":[["Character", "<div>"]]}, |
95 |
|
|
|
96 |
|
|
{"description":"end tag followed by character data", |
97 |
|
|
"contentModelFlags":["RCDATA","CDATA"], |
98 |
|
|
"lastStartTag":"xxx", |
99 |
|
|
"input":"AB</xxx>CD", |
100 |
|
|
"output":[["Character", "AB"],["EndTag", "xxx"],["Character", "CD"]]} |
101 |
wakaba |
1.1 |
|
102 |
|
|
]} |