• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "tests": [
3        {
4            "fragmentContext": null,
5            "description": "<style> <!-- </style>x",
6            "input": "<style> <!-- </style>x",
7            "output": [
8                [
9                    "StartTag",
10                    "style",
11                    {}
12                ],
13                [
14                    "Character",
15                    " <!-- "
16                ],
17                [
18                    "EndTag",
19                    "style"
20                ],
21                [
22                    "Character",
23                    "x"
24                ]
25            ]
26        },
27        {
28            "fragmentContext": null,
29            "description": "<style> <!-- </style> --> </style>x",
30            "input": "<style> <!-- </style> --> </style>x",
31            "output": [
32                [
33                    "StartTag",
34                    "style",
35                    {}
36                ],
37                [
38                    "Character",
39                    " <!-- "
40                ],
41                [
42                    "EndTag",
43                    "style"
44                ],
45                [
46                    "Character",
47                    " --> "
48                ],
49                [
50                    "EndTag",
51                    "style"
52                ],
53                [
54                    "Character",
55                    "x"
56                ]
57            ]
58        },
59        {
60            "fragmentContext": null,
61            "description": "<style> <!--> </style>x",
62            "input": "<style> <!--> </style>x",
63            "output": [
64                [
65                    "StartTag",
66                    "style",
67                    {}
68                ],
69                [
70                    "Character",
71                    " <!--> "
72                ],
73                [
74                    "EndTag",
75                    "style"
76                ],
77                [
78                    "Character",
79                    "x"
80                ]
81            ]
82        },
83        {
84            "fragmentContext": null,
85            "description": "<style> <!---> </style>x",
86            "input": "<style> <!---> </style>x",
87            "output": [
88                [
89                    "StartTag",
90                    "style",
91                    {}
92                ],
93                [
94                    "Character",
95                    " <!---> "
96                ],
97                [
98                    "EndTag",
99                    "style"
100                ],
101                [
102                    "Character",
103                    "x"
104                ]
105            ]
106        },
107        {
108            "fragmentContext": null,
109            "description": "<iframe> <!---> </iframe>x",
110            "input": "<iframe> <!---> </iframe>x",
111            "output": [
112                [
113                    "StartTag",
114                    "iframe",
115                    {}
116                ],
117                [
118                    "Character",
119                    " <!---> "
120                ],
121                [
122                    "EndTag",
123                    "iframe"
124                ],
125                [
126                    "Character",
127                    "x"
128                ]
129            ]
130        },
131        {
132            "fragmentContext": null,
133            "description": "<iframe> <!--- </iframe>->x</iframe> --> </iframe>x",
134            "input": "<iframe> <!--- </iframe>->x</iframe> --> </iframe>x",
135            "output": [
136                [
137                    "StartTag",
138                    "iframe",
139                    {}
140                ],
141                [
142                    "Character",
143                    " <!--- "
144                ],
145                [
146                    "EndTag",
147                    "iframe"
148                ],
149                [
150                    "Character",
151                    "->x"
152                ],
153                [
154                    "EndTag",
155                    "iframe"
156                ],
157                [
158                    "Character",
159                    " --> "
160                ],
161                [
162                    "EndTag",
163                    "iframe"
164                ],
165                [
166                    "Character",
167                    "x"
168                ]
169            ]
170        },
171        {
172            "fragmentContext": null,
173            "description": "<script> <!-- </script> --> </script>x",
174            "input": "<script> <!-- </script> --> </script>x",
175            "output": [
176                [
177                    "StartTag",
178                    "script",
179                    {}
180                ],
181                [
182                    "Character",
183                    " <!-- "
184                ],
185                [
186                    "EndTag",
187                    "script"
188                ],
189                [
190                    "Character",
191                    " --> "
192                ],
193                [
194                    "EndTag",
195                    "script"
196                ],
197                [
198                    "Character",
199                    "x"
200                ]
201            ]
202        },
203        {
204            "fragmentContext": null,
205            "description": "<title> <!-- </title> --> </title>x",
206            "input": "<title> <!-- </title> --> </title>x",
207            "output": [
208                [
209                    "StartTag",
210                    "title",
211                    {}
212                ],
213                [
214                    "Character",
215                    " <!-- "
216                ],
217                [
218                    "EndTag",
219                    "title"
220                ],
221                [
222                    "Character",
223                    " --> "
224                ],
225                [
226                    "EndTag",
227                    "title"
228                ],
229                [
230                    "Character",
231                    "x"
232                ]
233            ]
234        },
235        {
236            "fragmentContext": null,
237            "description": "<textarea> <!--- </textarea>->x</textarea> --> </textarea>x",
238            "input": "<textarea> <!--- </textarea>->x</textarea> --> </textarea>x",
239            "output": [
240                [
241                    "StartTag",
242                    "textarea",
243                    {}
244                ],
245                [
246                    "Character",
247                    " <!--- "
248                ],
249                [
250                    "EndTag",
251                    "textarea"
252                ],
253                [
254                    "Character",
255                    "->x"
256                ],
257                [
258                    "EndTag",
259                    "textarea"
260                ],
261                [
262                    "Character",
263                    " --> "
264                ],
265                [
266                    "EndTag",
267                    "textarea"
268                ],
269                [
270                    "Character",
271                    "x"
272                ]
273            ]
274        },
275        {
276            "fragmentContext": null,
277            "description": "<style> <!</-- </style>x",
278            "input": "<style> <!</-- </style>x",
279            "output": [
280                [
281                    "StartTag",
282                    "style",
283                    {}
284                ],
285                [
286                    "Character",
287                    " <!</-- "
288                ],
289                [
290                    "EndTag",
291                    "style"
292                ],
293                [
294                    "Character",
295                    "x"
296                ]
297            ]
298        },
299        {
300            "fragmentContext": null,
301            "description": "<p><xmp></xmp>",
302            "input": "<p><xmp></xmp>",
303            "output": [
304                [
305                    "StartTag",
306                    "p",
307                    {}
308                ],
309                [
310                    "StartTag",
311                    "xmp",
312                    {}
313                ],
314                [
315                    "EndTag",
316                    "xmp"
317                ]
318            ]
319        },
320        {
321            "fragmentContext": null,
322            "description": "<xmp> <!-- > --> </xmp>",
323            "input": "<xmp> <!-- > --> </xmp>",
324            "output": [
325                [
326                    "StartTag",
327                    "xmp",
328                    {}
329                ],
330                [
331                    "Character",
332                    " <!-- > --> "
333                ],
334                [
335                    "EndTag",
336                    "xmp"
337                ]
338            ]
339        },
340        {
341            "fragmentContext": null,
342            "description": "<title>&amp;</title>",
343            "input": "<title>&amp;</title>",
344            "output": [
345                [
346                    "StartTag",
347                    "title",
348                    {}
349                ],
350                [
351                    "Character",
352                    "&"
353                ],
354                [
355                    "EndTag",
356                    "title"
357                ]
358            ]
359        },
360        {
361            "fragmentContext": null,
362            "description": "<title><!--&amp;--></title>",
363            "input": "<title><!--&amp;--></title>",
364            "output": [
365                [
366                    "StartTag",
367                    "title",
368                    {}
369                ],
370                [
371                    "Character",
372                    "<!--&-->"
373                ],
374                [
375                    "EndTag",
376                    "title"
377                ]
378            ]
379        },
380        {
381            "fragmentContext": null,
382            "description": "<title><!--</title>",
383            "input": "<title><!--</title>",
384            "output": [
385                [
386                    "StartTag",
387                    "title",
388                    {}
389                ],
390                [
391                    "Character",
392                    "<!--"
393                ],
394                [
395                    "EndTag",
396                    "title"
397                ]
398            ]
399        },
400        {
401            "fragmentContext": null,
402            "description": "<noscript><!--</noscript>--></noscript>",
403            "input": "<noscript><!--</noscript>--></noscript>",
404            "output": [
405                [
406                    "StartTag",
407                    "noscript",
408                    {}
409                ],
410                [
411                    "Character",
412                    "<!--"
413                ],
414                [
415                    "EndTag",
416                    "noscript"
417                ],
418                [
419                    "Character",
420                    "-->"
421                ],
422                [
423                    "EndTag",
424                    "noscript"
425                ]
426            ]
427        },
428        {
429            "fragmentContext": null,
430            "description": "<noscript><!--</noscript>--></noscript>",
431            "input": "<noscript><!--</noscript>--></noscript>",
432            "output": [
433                [
434                    "StartTag",
435                    "noscript",
436                    {}
437                ],
438                [
439                    "Character",
440                    "<!--"
441                ],
442                [
443                    "EndTag",
444                    "noscript"
445                ],
446                [
447                    "Character",
448                    "-->"
449                ],
450                [
451                    "EndTag",
452                    "noscript"
453                ]
454            ]
455        }
456    ]
457}