• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "tests": [
3        {
4            "fragmentContext": null,
5            "description": "<!DOCTYPE html><html><body><xyz:abc></xyz:abc>",
6            "input": "<!DOCTYPE html><html><body><xyz:abc></xyz:abc>",
7            "output": [
8                [
9                    "DOCTYPE",
10                    "html",
11                    null,
12                    null,
13                    true
14                ],
15                [
16                    "StartTag",
17                    "html",
18                    {}
19                ],
20                [
21                    "StartTag",
22                    "body",
23                    {}
24                ],
25                [
26                    "StartTag",
27                    "xyz:abc",
28                    {}
29                ],
30                [
31                    "EndTag",
32                    "xyz:abc"
33                ]
34            ]
35        },
36        {
37            "fragmentContext": null,
38            "description": "<!DOCTYPE html><html><body><xyz:abc></xyz:abc><span></span>",
39            "input": "<!DOCTYPE html><html><body><xyz:abc></xyz:abc><span></span>",
40            "output": [
41                [
42                    "DOCTYPE",
43                    "html",
44                    null,
45                    null,
46                    true
47                ],
48                [
49                    "StartTag",
50                    "html",
51                    {}
52                ],
53                [
54                    "StartTag",
55                    "body",
56                    {}
57                ],
58                [
59                    "StartTag",
60                    "xyz:abc",
61                    {}
62                ],
63                [
64                    "EndTag",
65                    "xyz:abc"
66                ],
67                [
68                    "StartTag",
69                    "span",
70                    {}
71                ],
72                [
73                    "EndTag",
74                    "span"
75                ]
76            ]
77        },
78        {
79            "fragmentContext": null,
80            "description": "<!DOCTYPE html><html><html abc:def=gh><xyz:abc></xyz:abc>",
81            "input": "<!DOCTYPE html><html><html abc:def=gh><xyz:abc></xyz:abc>",
82            "output": [
83                [
84                    "DOCTYPE",
85                    "html",
86                    null,
87                    null,
88                    true
89                ],
90                [
91                    "StartTag",
92                    "html",
93                    {}
94                ],
95                [
96                    "StartTag",
97                    "html",
98                    {
99                        "abc:def": "gh"
100                    }
101                ],
102                [
103                    "StartTag",
104                    "xyz:abc",
105                    {}
106                ],
107                [
108                    "EndTag",
109                    "xyz:abc"
110                ]
111            ]
112        },
113        {
114            "fragmentContext": null,
115            "description": "<!DOCTYPE html><html xml:lang=bar><html xml:lang=foo>",
116            "input": "<!DOCTYPE html><html xml:lang=bar><html xml:lang=foo>",
117            "output": [
118                [
119                    "DOCTYPE",
120                    "html",
121                    null,
122                    null,
123                    true
124                ],
125                [
126                    "StartTag",
127                    "html",
128                    {
129                        "xml:lang": "bar"
130                    }
131                ],
132                [
133                    "StartTag",
134                    "html",
135                    {
136                        "xml:lang": "foo"
137                    }
138                ]
139            ]
140        },
141        {
142            "fragmentContext": null,
143            "description": "<!DOCTYPE html><html 123=456>",
144            "input": "<!DOCTYPE html><html 123=456>",
145            "output": [
146                [
147                    "DOCTYPE",
148                    "html",
149                    null,
150                    null,
151                    true
152                ],
153                [
154                    "StartTag",
155                    "html",
156                    {
157                        "123": "456"
158                    }
159                ]
160            ]
161        },
162        {
163            "fragmentContext": null,
164            "description": "<!DOCTYPE html><html 123=456><html 789=012>",
165            "input": "<!DOCTYPE html><html 123=456><html 789=012>",
166            "output": [
167                [
168                    "DOCTYPE",
169                    "html",
170                    null,
171                    null,
172                    true
173                ],
174                [
175                    "StartTag",
176                    "html",
177                    {
178                        "123": "456"
179                    }
180                ],
181                [
182                    "StartTag",
183                    "html",
184                    {
185                        "789": "012"
186                    }
187                ]
188            ]
189        },
190        {
191            "fragmentContext": null,
192            "description": "<!DOCTYPE html><html><body 789=012>",
193            "input": "<!DOCTYPE html><html><body 789=012>",
194            "output": [
195                [
196                    "DOCTYPE",
197                    "html",
198                    null,
199                    null,
200                    true
201                ],
202                [
203                    "StartTag",
204                    "html",
205                    {}
206                ],
207                [
208                    "StartTag",
209                    "body",
210                    {
211                        "789": "012"
212                    }
213                ]
214            ]
215        }
216    ]
217}