• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2    "tests": [
3        {
4            "fragmentContext": null,
5            "description": "<!doctype html><p>foo<address>bar<p>baz",
6            "input": "<!doctype html><p>foo<address>bar<p>baz",
7            "output": [
8                [
9                    "DOCTYPE",
10                    "html",
11                    null,
12                    null,
13                    true
14                ],
15                [
16                    "StartTag",
17                    "p",
18                    {}
19                ],
20                [
21                    "Character",
22                    "foo"
23                ],
24                [
25                    "StartTag",
26                    "address",
27                    {}
28                ],
29                [
30                    "Character",
31                    "bar"
32                ],
33                [
34                    "StartTag",
35                    "p",
36                    {}
37                ],
38                [
39                    "Character",
40                    "baz"
41                ]
42            ]
43        },
44        {
45            "fragmentContext": null,
46            "description": "<!doctype html><address><p>foo</address>bar",
47            "input": "<!doctype html><address><p>foo</address>bar",
48            "output": [
49                [
50                    "DOCTYPE",
51                    "html",
52                    null,
53                    null,
54                    true
55                ],
56                [
57                    "StartTag",
58                    "address",
59                    {}
60                ],
61                [
62                    "StartTag",
63                    "p",
64                    {}
65                ],
66                [
67                    "Character",
68                    "foo"
69                ],
70                [
71                    "EndTag",
72                    "address"
73                ],
74                [
75                    "Character",
76                    "bar"
77                ]
78            ]
79        },
80        {
81            "fragmentContext": null,
82            "description": "<!doctype html><p>foo<article>bar<p>baz",
83            "input": "<!doctype html><p>foo<article>bar<p>baz",
84            "output": [
85                [
86                    "DOCTYPE",
87                    "html",
88                    null,
89                    null,
90                    true
91                ],
92                [
93                    "StartTag",
94                    "p",
95                    {}
96                ],
97                [
98                    "Character",
99                    "foo"
100                ],
101                [
102                    "StartTag",
103                    "article",
104                    {}
105                ],
106                [
107                    "Character",
108                    "bar"
109                ],
110                [
111                    "StartTag",
112                    "p",
113                    {}
114                ],
115                [
116                    "Character",
117                    "baz"
118                ]
119            ]
120        },
121        {
122            "fragmentContext": null,
123            "description": "<!doctype html><article><p>foo</article>bar",
124            "input": "<!doctype html><article><p>foo</article>bar",
125            "output": [
126                [
127                    "DOCTYPE",
128                    "html",
129                    null,
130                    null,
131                    true
132                ],
133                [
134                    "StartTag",
135                    "article",
136                    {}
137                ],
138                [
139                    "StartTag",
140                    "p",
141                    {}
142                ],
143                [
144                    "Character",
145                    "foo"
146                ],
147                [
148                    "EndTag",
149                    "article"
150                ],
151                [
152                    "Character",
153                    "bar"
154                ]
155            ]
156        },
157        {
158            "fragmentContext": null,
159            "description": "<!doctype html><p>foo<aside>bar<p>baz",
160            "input": "<!doctype html><p>foo<aside>bar<p>baz",
161            "output": [
162                [
163                    "DOCTYPE",
164                    "html",
165                    null,
166                    null,
167                    true
168                ],
169                [
170                    "StartTag",
171                    "p",
172                    {}
173                ],
174                [
175                    "Character",
176                    "foo"
177                ],
178                [
179                    "StartTag",
180                    "aside",
181                    {}
182                ],
183                [
184                    "Character",
185                    "bar"
186                ],
187                [
188                    "StartTag",
189                    "p",
190                    {}
191                ],
192                [
193                    "Character",
194                    "baz"
195                ]
196            ]
197        },
198        {
199            "fragmentContext": null,
200            "description": "<!doctype html><aside><p>foo</aside>bar",
201            "input": "<!doctype html><aside><p>foo</aside>bar",
202            "output": [
203                [
204                    "DOCTYPE",
205                    "html",
206                    null,
207                    null,
208                    true
209                ],
210                [
211                    "StartTag",
212                    "aside",
213                    {}
214                ],
215                [
216                    "StartTag",
217                    "p",
218                    {}
219                ],
220                [
221                    "Character",
222                    "foo"
223                ],
224                [
225                    "EndTag",
226                    "aside"
227                ],
228                [
229                    "Character",
230                    "bar"
231                ]
232            ]
233        },
234        {
235            "fragmentContext": null,
236            "description": "<!doctype html><p>foo<blockquote>bar<p>baz",
237            "input": "<!doctype html><p>foo<blockquote>bar<p>baz",
238            "output": [
239                [
240                    "DOCTYPE",
241                    "html",
242                    null,
243                    null,
244                    true
245                ],
246                [
247                    "StartTag",
248                    "p",
249                    {}
250                ],
251                [
252                    "Character",
253                    "foo"
254                ],
255                [
256                    "StartTag",
257                    "blockquote",
258                    {}
259                ],
260                [
261                    "Character",
262                    "bar"
263                ],
264                [
265                    "StartTag",
266                    "p",
267                    {}
268                ],
269                [
270                    "Character",
271                    "baz"
272                ]
273            ]
274        },
275        {
276            "fragmentContext": null,
277            "description": "<!doctype html><blockquote><p>foo</blockquote>bar",
278            "input": "<!doctype html><blockquote><p>foo</blockquote>bar",
279            "output": [
280                [
281                    "DOCTYPE",
282                    "html",
283                    null,
284                    null,
285                    true
286                ],
287                [
288                    "StartTag",
289                    "blockquote",
290                    {}
291                ],
292                [
293                    "StartTag",
294                    "p",
295                    {}
296                ],
297                [
298                    "Character",
299                    "foo"
300                ],
301                [
302                    "EndTag",
303                    "blockquote"
304                ],
305                [
306                    "Character",
307                    "bar"
308                ]
309            ]
310        },
311        {
312            "fragmentContext": null,
313            "description": "<!doctype html><p>foo<center>bar<p>baz",
314            "input": "<!doctype html><p>foo<center>bar<p>baz",
315            "output": [
316                [
317                    "DOCTYPE",
318                    "html",
319                    null,
320                    null,
321                    true
322                ],
323                [
324                    "StartTag",
325                    "p",
326                    {}
327                ],
328                [
329                    "Character",
330                    "foo"
331                ],
332                [
333                    "StartTag",
334                    "center",
335                    {}
336                ],
337                [
338                    "Character",
339                    "bar"
340                ],
341                [
342                    "StartTag",
343                    "p",
344                    {}
345                ],
346                [
347                    "Character",
348                    "baz"
349                ]
350            ]
351        },
352        {
353            "fragmentContext": null,
354            "description": "<!doctype html><center><p>foo</center>bar",
355            "input": "<!doctype html><center><p>foo</center>bar",
356            "output": [
357                [
358                    "DOCTYPE",
359                    "html",
360                    null,
361                    null,
362                    true
363                ],
364                [
365                    "StartTag",
366                    "center",
367                    {}
368                ],
369                [
370                    "StartTag",
371                    "p",
372                    {}
373                ],
374                [
375                    "Character",
376                    "foo"
377                ],
378                [
379                    "EndTag",
380                    "center"
381                ],
382                [
383                    "Character",
384                    "bar"
385                ]
386            ]
387        },
388        {
389            "fragmentContext": null,
390            "description": "<!doctype html><p>foo<details>bar<p>baz",
391            "input": "<!doctype html><p>foo<details>bar<p>baz",
392            "output": [
393                [
394                    "DOCTYPE",
395                    "html",
396                    null,
397                    null,
398                    true
399                ],
400                [
401                    "StartTag",
402                    "p",
403                    {}
404                ],
405                [
406                    "Character",
407                    "foo"
408                ],
409                [
410                    "StartTag",
411                    "details",
412                    {}
413                ],
414                [
415                    "Character",
416                    "bar"
417                ],
418                [
419                    "StartTag",
420                    "p",
421                    {}
422                ],
423                [
424                    "Character",
425                    "baz"
426                ]
427            ]
428        },
429        {
430            "fragmentContext": null,
431            "description": "<!doctype html><details><p>foo</details>bar",
432            "input": "<!doctype html><details><p>foo</details>bar",
433            "output": [
434                [
435                    "DOCTYPE",
436                    "html",
437                    null,
438                    null,
439                    true
440                ],
441                [
442                    "StartTag",
443                    "details",
444                    {}
445                ],
446                [
447                    "StartTag",
448                    "p",
449                    {}
450                ],
451                [
452                    "Character",
453                    "foo"
454                ],
455                [
456                    "EndTag",
457                    "details"
458                ],
459                [
460                    "Character",
461                    "bar"
462                ]
463            ]
464        },
465        {
466            "fragmentContext": null,
467            "description": "<!doctype html><p>foo<dialog>bar<p>baz",
468            "input": "<!doctype html><p>foo<dialog>bar<p>baz",
469            "output": [
470                [
471                    "DOCTYPE",
472                    "html",
473                    null,
474                    null,
475                    true
476                ],
477                [
478                    "StartTag",
479                    "p",
480                    {}
481                ],
482                [
483                    "Character",
484                    "foo"
485                ],
486                [
487                    "StartTag",
488                    "dialog",
489                    {}
490                ],
491                [
492                    "Character",
493                    "bar"
494                ],
495                [
496                    "StartTag",
497                    "p",
498                    {}
499                ],
500                [
501                    "Character",
502                    "baz"
503                ]
504            ]
505        },
506        {
507            "fragmentContext": null,
508            "description": "<!doctype html><dialog><p>foo</dialog>bar",
509            "input": "<!doctype html><dialog><p>foo</dialog>bar",
510            "output": [
511                [
512                    "DOCTYPE",
513                    "html",
514                    null,
515                    null,
516                    true
517                ],
518                [
519                    "StartTag",
520                    "dialog",
521                    {}
522                ],
523                [
524                    "StartTag",
525                    "p",
526                    {}
527                ],
528                [
529                    "Character",
530                    "foo"
531                ],
532                [
533                    "EndTag",
534                    "dialog"
535                ],
536                [
537                    "Character",
538                    "bar"
539                ]
540            ]
541        },
542        {
543            "fragmentContext": null,
544            "description": "<!doctype html><p>foo<dir>bar<p>baz",
545            "input": "<!doctype html><p>foo<dir>bar<p>baz",
546            "output": [
547                [
548                    "DOCTYPE",
549                    "html",
550                    null,
551                    null,
552                    true
553                ],
554                [
555                    "StartTag",
556                    "p",
557                    {}
558                ],
559                [
560                    "Character",
561                    "foo"
562                ],
563                [
564                    "StartTag",
565                    "dir",
566                    {}
567                ],
568                [
569                    "Character",
570                    "bar"
571                ],
572                [
573                    "StartTag",
574                    "p",
575                    {}
576                ],
577                [
578                    "Character",
579                    "baz"
580                ]
581            ]
582        },
583        {
584            "fragmentContext": null,
585            "description": "<!doctype html><dir><p>foo</dir>bar",
586            "input": "<!doctype html><dir><p>foo</dir>bar",
587            "output": [
588                [
589                    "DOCTYPE",
590                    "html",
591                    null,
592                    null,
593                    true
594                ],
595                [
596                    "StartTag",
597                    "dir",
598                    {}
599                ],
600                [
601                    "StartTag",
602                    "p",
603                    {}
604                ],
605                [
606                    "Character",
607                    "foo"
608                ],
609                [
610                    "EndTag",
611                    "dir"
612                ],
613                [
614                    "Character",
615                    "bar"
616                ]
617            ]
618        },
619        {
620            "fragmentContext": null,
621            "description": "<!doctype html><p>foo<div>bar<p>baz",
622            "input": "<!doctype html><p>foo<div>bar<p>baz",
623            "output": [
624                [
625                    "DOCTYPE",
626                    "html",
627                    null,
628                    null,
629                    true
630                ],
631                [
632                    "StartTag",
633                    "p",
634                    {}
635                ],
636                [
637                    "Character",
638                    "foo"
639                ],
640                [
641                    "StartTag",
642                    "div",
643                    {}
644                ],
645                [
646                    "Character",
647                    "bar"
648                ],
649                [
650                    "StartTag",
651                    "p",
652                    {}
653                ],
654                [
655                    "Character",
656                    "baz"
657                ]
658            ]
659        },
660        {
661            "fragmentContext": null,
662            "description": "<!doctype html><div><p>foo</div>bar",
663            "input": "<!doctype html><div><p>foo</div>bar",
664            "output": [
665                [
666                    "DOCTYPE",
667                    "html",
668                    null,
669                    null,
670                    true
671                ],
672                [
673                    "StartTag",
674                    "div",
675                    {}
676                ],
677                [
678                    "StartTag",
679                    "p",
680                    {}
681                ],
682                [
683                    "Character",
684                    "foo"
685                ],
686                [
687                    "EndTag",
688                    "div"
689                ],
690                [
691                    "Character",
692                    "bar"
693                ]
694            ]
695        },
696        {
697            "fragmentContext": null,
698            "description": "<!doctype html><p>foo<dl>bar<p>baz",
699            "input": "<!doctype html><p>foo<dl>bar<p>baz",
700            "output": [
701                [
702                    "DOCTYPE",
703                    "html",
704                    null,
705                    null,
706                    true
707                ],
708                [
709                    "StartTag",
710                    "p",
711                    {}
712                ],
713                [
714                    "Character",
715                    "foo"
716                ],
717                [
718                    "StartTag",
719                    "dl",
720                    {}
721                ],
722                [
723                    "Character",
724                    "bar"
725                ],
726                [
727                    "StartTag",
728                    "p",
729                    {}
730                ],
731                [
732                    "Character",
733                    "baz"
734                ]
735            ]
736        },
737        {
738            "fragmentContext": null,
739            "description": "<!doctype html><dl><p>foo</dl>bar",
740            "input": "<!doctype html><dl><p>foo</dl>bar",
741            "output": [
742                [
743                    "DOCTYPE",
744                    "html",
745                    null,
746                    null,
747                    true
748                ],
749                [
750                    "StartTag",
751                    "dl",
752                    {}
753                ],
754                [
755                    "StartTag",
756                    "p",
757                    {}
758                ],
759                [
760                    "Character",
761                    "foo"
762                ],
763                [
764                    "EndTag",
765                    "dl"
766                ],
767                [
768                    "Character",
769                    "bar"
770                ]
771            ]
772        },
773        {
774            "fragmentContext": null,
775            "description": "<!doctype html><p>foo<fieldset>bar<p>baz",
776            "input": "<!doctype html><p>foo<fieldset>bar<p>baz",
777            "output": [
778                [
779                    "DOCTYPE",
780                    "html",
781                    null,
782                    null,
783                    true
784                ],
785                [
786                    "StartTag",
787                    "p",
788                    {}
789                ],
790                [
791                    "Character",
792                    "foo"
793                ],
794                [
795                    "StartTag",
796                    "fieldset",
797                    {}
798                ],
799                [
800                    "Character",
801                    "bar"
802                ],
803                [
804                    "StartTag",
805                    "p",
806                    {}
807                ],
808                [
809                    "Character",
810                    "baz"
811                ]
812            ]
813        },
814        {
815            "fragmentContext": null,
816            "description": "<!doctype html><fieldset><p>foo</fieldset>bar",
817            "input": "<!doctype html><fieldset><p>foo</fieldset>bar",
818            "output": [
819                [
820                    "DOCTYPE",
821                    "html",
822                    null,
823                    null,
824                    true
825                ],
826                [
827                    "StartTag",
828                    "fieldset",
829                    {}
830                ],
831                [
832                    "StartTag",
833                    "p",
834                    {}
835                ],
836                [
837                    "Character",
838                    "foo"
839                ],
840                [
841                    "EndTag",
842                    "fieldset"
843                ],
844                [
845                    "Character",
846                    "bar"
847                ]
848            ]
849        },
850        {
851            "fragmentContext": null,
852            "description": "<!doctype html><p>foo<figcaption>bar<p>baz",
853            "input": "<!doctype html><p>foo<figcaption>bar<p>baz",
854            "output": [
855                [
856                    "DOCTYPE",
857                    "html",
858                    null,
859                    null,
860                    true
861                ],
862                [
863                    "StartTag",
864                    "p",
865                    {}
866                ],
867                [
868                    "Character",
869                    "foo"
870                ],
871                [
872                    "StartTag",
873                    "figcaption",
874                    {}
875                ],
876                [
877                    "Character",
878                    "bar"
879                ],
880                [
881                    "StartTag",
882                    "p",
883                    {}
884                ],
885                [
886                    "Character",
887                    "baz"
888                ]
889            ]
890        },
891        {
892            "fragmentContext": null,
893            "description": "<!doctype html><figcaption><p>foo</figcaption>bar",
894            "input": "<!doctype html><figcaption><p>foo</figcaption>bar",
895            "output": [
896                [
897                    "DOCTYPE",
898                    "html",
899                    null,
900                    null,
901                    true
902                ],
903                [
904                    "StartTag",
905                    "figcaption",
906                    {}
907                ],
908                [
909                    "StartTag",
910                    "p",
911                    {}
912                ],
913                [
914                    "Character",
915                    "foo"
916                ],
917                [
918                    "EndTag",
919                    "figcaption"
920                ],
921                [
922                    "Character",
923                    "bar"
924                ]
925            ]
926        },
927        {
928            "fragmentContext": null,
929            "description": "<!doctype html><p>foo<figure>bar<p>baz",
930            "input": "<!doctype html><p>foo<figure>bar<p>baz",
931            "output": [
932                [
933                    "DOCTYPE",
934                    "html",
935                    null,
936                    null,
937                    true
938                ],
939                [
940                    "StartTag",
941                    "p",
942                    {}
943                ],
944                [
945                    "Character",
946                    "foo"
947                ],
948                [
949                    "StartTag",
950                    "figure",
951                    {}
952                ],
953                [
954                    "Character",
955                    "bar"
956                ],
957                [
958                    "StartTag",
959                    "p",
960                    {}
961                ],
962                [
963                    "Character",
964                    "baz"
965                ]
966            ]
967        },
968        {
969            "fragmentContext": null,
970            "description": "<!doctype html><figure><p>foo</figure>bar",
971            "input": "<!doctype html><figure><p>foo</figure>bar",
972            "output": [
973                [
974                    "DOCTYPE",
975                    "html",
976                    null,
977                    null,
978                    true
979                ],
980                [
981                    "StartTag",
982                    "figure",
983                    {}
984                ],
985                [
986                    "StartTag",
987                    "p",
988                    {}
989                ],
990                [
991                    "Character",
992                    "foo"
993                ],
994                [
995                    "EndTag",
996                    "figure"
997                ],
998                [
999                    "Character",
1000                    "bar"
1001                ]
1002            ]
1003        },
1004        {
1005            "fragmentContext": null,
1006            "description": "<!doctype html><p>foo<footer>bar<p>baz",
1007            "input": "<!doctype html><p>foo<footer>bar<p>baz",
1008            "output": [
1009                [
1010                    "DOCTYPE",
1011                    "html",
1012                    null,
1013                    null,
1014                    true
1015                ],
1016                [
1017                    "StartTag",
1018                    "p",
1019                    {}
1020                ],
1021                [
1022                    "Character",
1023                    "foo"
1024                ],
1025                [
1026                    "StartTag",
1027                    "footer",
1028                    {}
1029                ],
1030                [
1031                    "Character",
1032                    "bar"
1033                ],
1034                [
1035                    "StartTag",
1036                    "p",
1037                    {}
1038                ],
1039                [
1040                    "Character",
1041                    "baz"
1042                ]
1043            ]
1044        },
1045        {
1046            "fragmentContext": null,
1047            "description": "<!doctype html><footer><p>foo</footer>bar",
1048            "input": "<!doctype html><footer><p>foo</footer>bar",
1049            "output": [
1050                [
1051                    "DOCTYPE",
1052                    "html",
1053                    null,
1054                    null,
1055                    true
1056                ],
1057                [
1058                    "StartTag",
1059                    "footer",
1060                    {}
1061                ],
1062                [
1063                    "StartTag",
1064                    "p",
1065                    {}
1066                ],
1067                [
1068                    "Character",
1069                    "foo"
1070                ],
1071                [
1072                    "EndTag",
1073                    "footer"
1074                ],
1075                [
1076                    "Character",
1077                    "bar"
1078                ]
1079            ]
1080        },
1081        {
1082            "fragmentContext": null,
1083            "description": "<!doctype html><p>foo<header>bar<p>baz",
1084            "input": "<!doctype html><p>foo<header>bar<p>baz",
1085            "output": [
1086                [
1087                    "DOCTYPE",
1088                    "html",
1089                    null,
1090                    null,
1091                    true
1092                ],
1093                [
1094                    "StartTag",
1095                    "p",
1096                    {}
1097                ],
1098                [
1099                    "Character",
1100                    "foo"
1101                ],
1102                [
1103                    "StartTag",
1104                    "header",
1105                    {}
1106                ],
1107                [
1108                    "Character",
1109                    "bar"
1110                ],
1111                [
1112                    "StartTag",
1113                    "p",
1114                    {}
1115                ],
1116                [
1117                    "Character",
1118                    "baz"
1119                ]
1120            ]
1121        },
1122        {
1123            "fragmentContext": null,
1124            "description": "<!doctype html><header><p>foo</header>bar",
1125            "input": "<!doctype html><header><p>foo</header>bar",
1126            "output": [
1127                [
1128                    "DOCTYPE",
1129                    "html",
1130                    null,
1131                    null,
1132                    true
1133                ],
1134                [
1135                    "StartTag",
1136                    "header",
1137                    {}
1138                ],
1139                [
1140                    "StartTag",
1141                    "p",
1142                    {}
1143                ],
1144                [
1145                    "Character",
1146                    "foo"
1147                ],
1148                [
1149                    "EndTag",
1150                    "header"
1151                ],
1152                [
1153                    "Character",
1154                    "bar"
1155                ]
1156            ]
1157        },
1158        {
1159            "fragmentContext": null,
1160            "description": "<!doctype html><p>foo<hgroup>bar<p>baz",
1161            "input": "<!doctype html><p>foo<hgroup>bar<p>baz",
1162            "output": [
1163                [
1164                    "DOCTYPE",
1165                    "html",
1166                    null,
1167                    null,
1168                    true
1169                ],
1170                [
1171                    "StartTag",
1172                    "p",
1173                    {}
1174                ],
1175                [
1176                    "Character",
1177                    "foo"
1178                ],
1179                [
1180                    "StartTag",
1181                    "hgroup",
1182                    {}
1183                ],
1184                [
1185                    "Character",
1186                    "bar"
1187                ],
1188                [
1189                    "StartTag",
1190                    "p",
1191                    {}
1192                ],
1193                [
1194                    "Character",
1195                    "baz"
1196                ]
1197            ]
1198        },
1199        {
1200            "fragmentContext": null,
1201            "description": "<!doctype html><hgroup><p>foo</hgroup>bar",
1202            "input": "<!doctype html><hgroup><p>foo</hgroup>bar",
1203            "output": [
1204                [
1205                    "DOCTYPE",
1206                    "html",
1207                    null,
1208                    null,
1209                    true
1210                ],
1211                [
1212                    "StartTag",
1213                    "hgroup",
1214                    {}
1215                ],
1216                [
1217                    "StartTag",
1218                    "p",
1219                    {}
1220                ],
1221                [
1222                    "Character",
1223                    "foo"
1224                ],
1225                [
1226                    "EndTag",
1227                    "hgroup"
1228                ],
1229                [
1230                    "Character",
1231                    "bar"
1232                ]
1233            ]
1234        },
1235        {
1236            "fragmentContext": null,
1237            "description": "<!doctype html><p>foo<listing>bar<p>baz",
1238            "input": "<!doctype html><p>foo<listing>bar<p>baz",
1239            "output": [
1240                [
1241                    "DOCTYPE",
1242                    "html",
1243                    null,
1244                    null,
1245                    true
1246                ],
1247                [
1248                    "StartTag",
1249                    "p",
1250                    {}
1251                ],
1252                [
1253                    "Character",
1254                    "foo"
1255                ],
1256                [
1257                    "StartTag",
1258                    "listing",
1259                    {}
1260                ],
1261                [
1262                    "Character",
1263                    "bar"
1264                ],
1265                [
1266                    "StartTag",
1267                    "p",
1268                    {}
1269                ],
1270                [
1271                    "Character",
1272                    "baz"
1273                ]
1274            ]
1275        },
1276        {
1277            "fragmentContext": null,
1278            "description": "<!doctype html><listing><p>foo</listing>bar",
1279            "input": "<!doctype html><listing><p>foo</listing>bar",
1280            "output": [
1281                [
1282                    "DOCTYPE",
1283                    "html",
1284                    null,
1285                    null,
1286                    true
1287                ],
1288                [
1289                    "StartTag",
1290                    "listing",
1291                    {}
1292                ],
1293                [
1294                    "StartTag",
1295                    "p",
1296                    {}
1297                ],
1298                [
1299                    "Character",
1300                    "foo"
1301                ],
1302                [
1303                    "EndTag",
1304                    "listing"
1305                ],
1306                [
1307                    "Character",
1308                    "bar"
1309                ]
1310            ]
1311        },
1312        {
1313            "fragmentContext": null,
1314            "description": "<!doctype html><p>foo<menu>bar<p>baz",
1315            "input": "<!doctype html><p>foo<menu>bar<p>baz",
1316            "output": [
1317                [
1318                    "DOCTYPE",
1319                    "html",
1320                    null,
1321                    null,
1322                    true
1323                ],
1324                [
1325                    "StartTag",
1326                    "p",
1327                    {}
1328                ],
1329                [
1330                    "Character",
1331                    "foo"
1332                ],
1333                [
1334                    "StartTag",
1335                    "menu",
1336                    {}
1337                ],
1338                [
1339                    "Character",
1340                    "bar"
1341                ],
1342                [
1343                    "StartTag",
1344                    "p",
1345                    {}
1346                ],
1347                [
1348                    "Character",
1349                    "baz"
1350                ]
1351            ]
1352        },
1353        {
1354            "fragmentContext": null,
1355            "description": "<!doctype html><menu><p>foo</menu>bar",
1356            "input": "<!doctype html><menu><p>foo</menu>bar",
1357            "output": [
1358                [
1359                    "DOCTYPE",
1360                    "html",
1361                    null,
1362                    null,
1363                    true
1364                ],
1365                [
1366                    "StartTag",
1367                    "menu",
1368                    {}
1369                ],
1370                [
1371                    "StartTag",
1372                    "p",
1373                    {}
1374                ],
1375                [
1376                    "Character",
1377                    "foo"
1378                ],
1379                [
1380                    "EndTag",
1381                    "menu"
1382                ],
1383                [
1384                    "Character",
1385                    "bar"
1386                ]
1387            ]
1388        },
1389        {
1390            "fragmentContext": null,
1391            "description": "<!doctype html><p>foo<nav>bar<p>baz",
1392            "input": "<!doctype html><p>foo<nav>bar<p>baz",
1393            "output": [
1394                [
1395                    "DOCTYPE",
1396                    "html",
1397                    null,
1398                    null,
1399                    true
1400                ],
1401                [
1402                    "StartTag",
1403                    "p",
1404                    {}
1405                ],
1406                [
1407                    "Character",
1408                    "foo"
1409                ],
1410                [
1411                    "StartTag",
1412                    "nav",
1413                    {}
1414                ],
1415                [
1416                    "Character",
1417                    "bar"
1418                ],
1419                [
1420                    "StartTag",
1421                    "p",
1422                    {}
1423                ],
1424                [
1425                    "Character",
1426                    "baz"
1427                ]
1428            ]
1429        },
1430        {
1431            "fragmentContext": null,
1432            "description": "<!doctype html><nav><p>foo</nav>bar",
1433            "input": "<!doctype html><nav><p>foo</nav>bar",
1434            "output": [
1435                [
1436                    "DOCTYPE",
1437                    "html",
1438                    null,
1439                    null,
1440                    true
1441                ],
1442                [
1443                    "StartTag",
1444                    "nav",
1445                    {}
1446                ],
1447                [
1448                    "StartTag",
1449                    "p",
1450                    {}
1451                ],
1452                [
1453                    "Character",
1454                    "foo"
1455                ],
1456                [
1457                    "EndTag",
1458                    "nav"
1459                ],
1460                [
1461                    "Character",
1462                    "bar"
1463                ]
1464            ]
1465        },
1466        {
1467            "fragmentContext": null,
1468            "description": "<!doctype html><p>foo<ol>bar<p>baz",
1469            "input": "<!doctype html><p>foo<ol>bar<p>baz",
1470            "output": [
1471                [
1472                    "DOCTYPE",
1473                    "html",
1474                    null,
1475                    null,
1476                    true
1477                ],
1478                [
1479                    "StartTag",
1480                    "p",
1481                    {}
1482                ],
1483                [
1484                    "Character",
1485                    "foo"
1486                ],
1487                [
1488                    "StartTag",
1489                    "ol",
1490                    {}
1491                ],
1492                [
1493                    "Character",
1494                    "bar"
1495                ],
1496                [
1497                    "StartTag",
1498                    "p",
1499                    {}
1500                ],
1501                [
1502                    "Character",
1503                    "baz"
1504                ]
1505            ]
1506        },
1507        {
1508            "fragmentContext": null,
1509            "description": "<!doctype html><ol><p>foo</ol>bar",
1510            "input": "<!doctype html><ol><p>foo</ol>bar",
1511            "output": [
1512                [
1513                    "DOCTYPE",
1514                    "html",
1515                    null,
1516                    null,
1517                    true
1518                ],
1519                [
1520                    "StartTag",
1521                    "ol",
1522                    {}
1523                ],
1524                [
1525                    "StartTag",
1526                    "p",
1527                    {}
1528                ],
1529                [
1530                    "Character",
1531                    "foo"
1532                ],
1533                [
1534                    "EndTag",
1535                    "ol"
1536                ],
1537                [
1538                    "Character",
1539                    "bar"
1540                ]
1541            ]
1542        },
1543        {
1544            "fragmentContext": null,
1545            "description": "<!doctype html><p>foo<pre>bar<p>baz",
1546            "input": "<!doctype html><p>foo<pre>bar<p>baz",
1547            "output": [
1548                [
1549                    "DOCTYPE",
1550                    "html",
1551                    null,
1552                    null,
1553                    true
1554                ],
1555                [
1556                    "StartTag",
1557                    "p",
1558                    {}
1559                ],
1560                [
1561                    "Character",
1562                    "foo"
1563                ],
1564                [
1565                    "StartTag",
1566                    "pre",
1567                    {}
1568                ],
1569                [
1570                    "Character",
1571                    "bar"
1572                ],
1573                [
1574                    "StartTag",
1575                    "p",
1576                    {}
1577                ],
1578                [
1579                    "Character",
1580                    "baz"
1581                ]
1582            ]
1583        },
1584        {
1585            "fragmentContext": null,
1586            "description": "<!doctype html><pre><p>foo</pre>bar",
1587            "input": "<!doctype html><pre><p>foo</pre>bar",
1588            "output": [
1589                [
1590                    "DOCTYPE",
1591                    "html",
1592                    null,
1593                    null,
1594                    true
1595                ],
1596                [
1597                    "StartTag",
1598                    "pre",
1599                    {}
1600                ],
1601                [
1602                    "StartTag",
1603                    "p",
1604                    {}
1605                ],
1606                [
1607                    "Character",
1608                    "foo"
1609                ],
1610                [
1611                    "EndTag",
1612                    "pre"
1613                ],
1614                [
1615                    "Character",
1616                    "bar"
1617                ]
1618            ]
1619        },
1620        {
1621            "fragmentContext": null,
1622            "description": "<!doctype html><p>foo<section>bar<p>baz",
1623            "input": "<!doctype html><p>foo<section>bar<p>baz",
1624            "output": [
1625                [
1626                    "DOCTYPE",
1627                    "html",
1628                    null,
1629                    null,
1630                    true
1631                ],
1632                [
1633                    "StartTag",
1634                    "p",
1635                    {}
1636                ],
1637                [
1638                    "Character",
1639                    "foo"
1640                ],
1641                [
1642                    "StartTag",
1643                    "section",
1644                    {}
1645                ],
1646                [
1647                    "Character",
1648                    "bar"
1649                ],
1650                [
1651                    "StartTag",
1652                    "p",
1653                    {}
1654                ],
1655                [
1656                    "Character",
1657                    "baz"
1658                ]
1659            ]
1660        },
1661        {
1662            "fragmentContext": null,
1663            "description": "<!doctype html><section><p>foo</section>bar",
1664            "input": "<!doctype html><section><p>foo</section>bar",
1665            "output": [
1666                [
1667                    "DOCTYPE",
1668                    "html",
1669                    null,
1670                    null,
1671                    true
1672                ],
1673                [
1674                    "StartTag",
1675                    "section",
1676                    {}
1677                ],
1678                [
1679                    "StartTag",
1680                    "p",
1681                    {}
1682                ],
1683                [
1684                    "Character",
1685                    "foo"
1686                ],
1687                [
1688                    "EndTag",
1689                    "section"
1690                ],
1691                [
1692                    "Character",
1693                    "bar"
1694                ]
1695            ]
1696        },
1697        {
1698            "fragmentContext": null,
1699            "description": "<!doctype html><p>foo<summary>bar<p>baz",
1700            "input": "<!doctype html><p>foo<summary>bar<p>baz",
1701            "output": [
1702                [
1703                    "DOCTYPE",
1704                    "html",
1705                    null,
1706                    null,
1707                    true
1708                ],
1709                [
1710                    "StartTag",
1711                    "p",
1712                    {}
1713                ],
1714                [
1715                    "Character",
1716                    "foo"
1717                ],
1718                [
1719                    "StartTag",
1720                    "summary",
1721                    {}
1722                ],
1723                [
1724                    "Character",
1725                    "bar"
1726                ],
1727                [
1728                    "StartTag",
1729                    "p",
1730                    {}
1731                ],
1732                [
1733                    "Character",
1734                    "baz"
1735                ]
1736            ]
1737        },
1738        {
1739            "fragmentContext": null,
1740            "description": "<!doctype html><summary><p>foo</summary>bar",
1741            "input": "<!doctype html><summary><p>foo</summary>bar",
1742            "output": [
1743                [
1744                    "DOCTYPE",
1745                    "html",
1746                    null,
1747                    null,
1748                    true
1749                ],
1750                [
1751                    "StartTag",
1752                    "summary",
1753                    {}
1754                ],
1755                [
1756                    "StartTag",
1757                    "p",
1758                    {}
1759                ],
1760                [
1761                    "Character",
1762                    "foo"
1763                ],
1764                [
1765                    "EndTag",
1766                    "summary"
1767                ],
1768                [
1769                    "Character",
1770                    "bar"
1771                ]
1772            ]
1773        },
1774        {
1775            "fragmentContext": null,
1776            "description": "<!doctype html><p>foo<ul>bar<p>baz",
1777            "input": "<!doctype html><p>foo<ul>bar<p>baz",
1778            "output": [
1779                [
1780                    "DOCTYPE",
1781                    "html",
1782                    null,
1783                    null,
1784                    true
1785                ],
1786                [
1787                    "StartTag",
1788                    "p",
1789                    {}
1790                ],
1791                [
1792                    "Character",
1793                    "foo"
1794                ],
1795                [
1796                    "StartTag",
1797                    "ul",
1798                    {}
1799                ],
1800                [
1801                    "Character",
1802                    "bar"
1803                ],
1804                [
1805                    "StartTag",
1806                    "p",
1807                    {}
1808                ],
1809                [
1810                    "Character",
1811                    "baz"
1812                ]
1813            ]
1814        },
1815        {
1816            "fragmentContext": null,
1817            "description": "<!doctype html><ul><p>foo</ul>bar",
1818            "input": "<!doctype html><ul><p>foo</ul>bar",
1819            "output": [
1820                [
1821                    "DOCTYPE",
1822                    "html",
1823                    null,
1824                    null,
1825                    true
1826                ],
1827                [
1828                    "StartTag",
1829                    "ul",
1830                    {}
1831                ],
1832                [
1833                    "StartTag",
1834                    "p",
1835                    {}
1836                ],
1837                [
1838                    "Character",
1839                    "foo"
1840                ],
1841                [
1842                    "EndTag",
1843                    "ul"
1844                ],
1845                [
1846                    "Character",
1847                    "bar"
1848                ]
1849            ]
1850        }
1851    ]
1852}