1{ 2 "tests": [ 3 { 4 "fragmentContext": null, 5 "description": "<body><template>Hello</template>", 6 "input": "<body><template>Hello</template>", 7 "output": [ 8 [ 9 "StartTag", 10 "body", 11 {} 12 ], 13 [ 14 "StartTag", 15 "template", 16 {} 17 ], 18 [ 19 "Character", 20 "Hello" 21 ], 22 [ 23 "EndTag", 24 "template" 25 ] 26 ] 27 }, 28 { 29 "fragmentContext": null, 30 "description": "<template>Hello</template>", 31 "input": "<template>Hello</template>", 32 "output": [ 33 [ 34 "StartTag", 35 "template", 36 {} 37 ], 38 [ 39 "Character", 40 "Hello" 41 ], 42 [ 43 "EndTag", 44 "template" 45 ] 46 ] 47 }, 48 { 49 "fragmentContext": null, 50 "description": "<template></template><div></div>", 51 "input": "<template></template><div></div>", 52 "output": [ 53 [ 54 "StartTag", 55 "template", 56 {} 57 ], 58 [ 59 "EndTag", 60 "template" 61 ], 62 [ 63 "StartTag", 64 "div", 65 {} 66 ], 67 [ 68 "EndTag", 69 "div" 70 ] 71 ] 72 }, 73 { 74 "fragmentContext": null, 75 "description": "<html><template>Hello</template>", 76 "input": "<html><template>Hello</template>", 77 "output": [ 78 [ 79 "StartTag", 80 "html", 81 {} 82 ], 83 [ 84 "StartTag", 85 "template", 86 {} 87 ], 88 [ 89 "Character", 90 "Hello" 91 ], 92 [ 93 "EndTag", 94 "template" 95 ] 96 ] 97 }, 98 { 99 "fragmentContext": null, 100 "description": "<head><template><div></div></template></head>", 101 "input": "<head><template><div></div></template></head>", 102 "output": [ 103 [ 104 "StartTag", 105 "head", 106 {} 107 ], 108 [ 109 "StartTag", 110 "template", 111 {} 112 ], 113 [ 114 "StartTag", 115 "div", 116 {} 117 ], 118 [ 119 "EndTag", 120 "div" 121 ], 122 [ 123 "EndTag", 124 "template" 125 ], 126 [ 127 "EndTag", 128 "head" 129 ] 130 ] 131 }, 132 { 133 "fragmentContext": null, 134 "description": "<div><template><div><span></template><b>", 135 "input": "<div><template><div><span></template><b>", 136 "output": [ 137 [ 138 "StartTag", 139 "div", 140 {} 141 ], 142 [ 143 "StartTag", 144 "template", 145 {} 146 ], 147 [ 148 "StartTag", 149 "div", 150 {} 151 ], 152 [ 153 "StartTag", 154 "span", 155 {} 156 ], 157 [ 158 "EndTag", 159 "template" 160 ], 161 [ 162 "StartTag", 163 "b", 164 {} 165 ] 166 ] 167 }, 168 { 169 "fragmentContext": null, 170 "description": "<div><template></div>Hello", 171 "input": "<div><template></div>Hello", 172 "output": [ 173 [ 174 "StartTag", 175 "div", 176 {} 177 ], 178 [ 179 "StartTag", 180 "template", 181 {} 182 ], 183 [ 184 "EndTag", 185 "div" 186 ], 187 [ 188 "Character", 189 "Hello" 190 ] 191 ] 192 }, 193 { 194 "fragmentContext": null, 195 "description": "<div></template></div>", 196 "input": "<div></template></div>", 197 "output": [ 198 [ 199 "StartTag", 200 "div", 201 {} 202 ], 203 [ 204 "EndTag", 205 "template" 206 ], 207 [ 208 "EndTag", 209 "div" 210 ] 211 ] 212 }, 213 { 214 "fragmentContext": null, 215 "description": "<table><template></template></table>", 216 "input": "<table><template></template></table>", 217 "output": [ 218 [ 219 "StartTag", 220 "table", 221 {} 222 ], 223 [ 224 "StartTag", 225 "template", 226 {} 227 ], 228 [ 229 "EndTag", 230 "template" 231 ], 232 [ 233 "EndTag", 234 "table" 235 ] 236 ] 237 }, 238 { 239 "fragmentContext": null, 240 "description": "<table><template></template></div>", 241 "input": "<table><template></template></div>", 242 "output": [ 243 [ 244 "StartTag", 245 "table", 246 {} 247 ], 248 [ 249 "StartTag", 250 "template", 251 {} 252 ], 253 [ 254 "EndTag", 255 "template" 256 ], 257 [ 258 "EndTag", 259 "div" 260 ] 261 ] 262 }, 263 { 264 "fragmentContext": null, 265 "description": "<table><div><template></template></div>", 266 "input": "<table><div><template></template></div>", 267 "output": [ 268 [ 269 "StartTag", 270 "table", 271 {} 272 ], 273 [ 274 "StartTag", 275 "div", 276 {} 277 ], 278 [ 279 "StartTag", 280 "template", 281 {} 282 ], 283 [ 284 "EndTag", 285 "template" 286 ], 287 [ 288 "EndTag", 289 "div" 290 ] 291 ] 292 }, 293 { 294 "fragmentContext": null, 295 "description": "<table><template></template><div></div>", 296 "input": "<table><template></template><div></div>", 297 "output": [ 298 [ 299 "StartTag", 300 "table", 301 {} 302 ], 303 [ 304 "StartTag", 305 "template", 306 {} 307 ], 308 [ 309 "EndTag", 310 "template" 311 ], 312 [ 313 "StartTag", 314 "div", 315 {} 316 ], 317 [ 318 "EndTag", 319 "div" 320 ] 321 ] 322 }, 323 { 324 "fragmentContext": null, 325 "description": "<table> <template></template></table>", 326 "input": "<table> <template></template></table>", 327 "output": [ 328 [ 329 "StartTag", 330 "table", 331 {} 332 ], 333 [ 334 "Character", 335 " " 336 ], 337 [ 338 "StartTag", 339 "template", 340 {} 341 ], 342 [ 343 "EndTag", 344 "template" 345 ], 346 [ 347 "EndTag", 348 "table" 349 ] 350 ] 351 }, 352 { 353 "fragmentContext": null, 354 "description": "<table><tbody><template></template></tbody>", 355 "input": "<table><tbody><template></template></tbody>", 356 "output": [ 357 [ 358 "StartTag", 359 "table", 360 {} 361 ], 362 [ 363 "StartTag", 364 "tbody", 365 {} 366 ], 367 [ 368 "StartTag", 369 "template", 370 {} 371 ], 372 [ 373 "EndTag", 374 "template" 375 ], 376 [ 377 "EndTag", 378 "tbody" 379 ] 380 ] 381 }, 382 { 383 "fragmentContext": null, 384 "description": "<table><tbody><template></tbody></template>", 385 "input": "<table><tbody><template></tbody></template>", 386 "output": [ 387 [ 388 "StartTag", 389 "table", 390 {} 391 ], 392 [ 393 "StartTag", 394 "tbody", 395 {} 396 ], 397 [ 398 "StartTag", 399 "template", 400 {} 401 ], 402 [ 403 "EndTag", 404 "tbody" 405 ], 406 [ 407 "EndTag", 408 "template" 409 ] 410 ] 411 }, 412 { 413 "fragmentContext": null, 414 "description": "<table><tbody><template></template></tbody></table>", 415 "input": "<table><tbody><template></template></tbody></table>", 416 "output": [ 417 [ 418 "StartTag", 419 "table", 420 {} 421 ], 422 [ 423 "StartTag", 424 "tbody", 425 {} 426 ], 427 [ 428 "StartTag", 429 "template", 430 {} 431 ], 432 [ 433 "EndTag", 434 "template" 435 ], 436 [ 437 "EndTag", 438 "tbody" 439 ], 440 [ 441 "EndTag", 442 "table" 443 ] 444 ] 445 }, 446 { 447 "fragmentContext": null, 448 "description": "<table><thead><template></template></thead>", 449 "input": "<table><thead><template></template></thead>", 450 "output": [ 451 [ 452 "StartTag", 453 "table", 454 {} 455 ], 456 [ 457 "StartTag", 458 "thead", 459 {} 460 ], 461 [ 462 "StartTag", 463 "template", 464 {} 465 ], 466 [ 467 "EndTag", 468 "template" 469 ], 470 [ 471 "EndTag", 472 "thead" 473 ] 474 ] 475 }, 476 { 477 "fragmentContext": null, 478 "description": "<table><tfoot><template></template></tfoot>", 479 "input": "<table><tfoot><template></template></tfoot>", 480 "output": [ 481 [ 482 "StartTag", 483 "table", 484 {} 485 ], 486 [ 487 "StartTag", 488 "tfoot", 489 {} 490 ], 491 [ 492 "StartTag", 493 "template", 494 {} 495 ], 496 [ 497 "EndTag", 498 "template" 499 ], 500 [ 501 "EndTag", 502 "tfoot" 503 ] 504 ] 505 }, 506 { 507 "fragmentContext": null, 508 "description": "<select><template></template></select>", 509 "input": "<select><template></template></select>", 510 "output": [ 511 [ 512 "StartTag", 513 "select", 514 {} 515 ], 516 [ 517 "StartTag", 518 "template", 519 {} 520 ], 521 [ 522 "EndTag", 523 "template" 524 ], 525 [ 526 "EndTag", 527 "select" 528 ] 529 ] 530 }, 531 { 532 "fragmentContext": null, 533 "description": "<select><template><option></option></template></select>", 534 "input": "<select><template><option></option></template></select>", 535 "output": [ 536 [ 537 "StartTag", 538 "select", 539 {} 540 ], 541 [ 542 "StartTag", 543 "template", 544 {} 545 ], 546 [ 547 "StartTag", 548 "option", 549 {} 550 ], 551 [ 552 "EndTag", 553 "option" 554 ], 555 [ 556 "EndTag", 557 "template" 558 ], 559 [ 560 "EndTag", 561 "select" 562 ] 563 ] 564 }, 565 { 566 "fragmentContext": null, 567 "description": "<template><option></option></select><option></option></template>", 568 "input": "<template><option></option></select><option></option></template>", 569 "output": [ 570 [ 571 "StartTag", 572 "template", 573 {} 574 ], 575 [ 576 "StartTag", 577 "option", 578 {} 579 ], 580 [ 581 "EndTag", 582 "option" 583 ], 584 [ 585 "EndTag", 586 "select" 587 ], 588 [ 589 "StartTag", 590 "option", 591 {} 592 ], 593 [ 594 "EndTag", 595 "option" 596 ], 597 [ 598 "EndTag", 599 "template" 600 ] 601 ] 602 }, 603 { 604 "fragmentContext": null, 605 "description": "<select><template></template><option></select>", 606 "input": "<select><template></template><option></select>", 607 "output": [ 608 [ 609 "StartTag", 610 "select", 611 {} 612 ], 613 [ 614 "StartTag", 615 "template", 616 {} 617 ], 618 [ 619 "EndTag", 620 "template" 621 ], 622 [ 623 "StartTag", 624 "option", 625 {} 626 ], 627 [ 628 "EndTag", 629 "select" 630 ] 631 ] 632 }, 633 { 634 "fragmentContext": null, 635 "description": "<select><option><template></template></select>", 636 "input": "<select><option><template></template></select>", 637 "output": [ 638 [ 639 "StartTag", 640 "select", 641 {} 642 ], 643 [ 644 "StartTag", 645 "option", 646 {} 647 ], 648 [ 649 "StartTag", 650 "template", 651 {} 652 ], 653 [ 654 "EndTag", 655 "template" 656 ], 657 [ 658 "EndTag", 659 "select" 660 ] 661 ] 662 }, 663 { 664 "fragmentContext": null, 665 "description": "<select><template>", 666 "input": "<select><template>", 667 "output": [ 668 [ 669 "StartTag", 670 "select", 671 {} 672 ], 673 [ 674 "StartTag", 675 "template", 676 {} 677 ] 678 ] 679 }, 680 { 681 "fragmentContext": null, 682 "description": "<select><option></option><template>", 683 "input": "<select><option></option><template>", 684 "output": [ 685 [ 686 "StartTag", 687 "select", 688 {} 689 ], 690 [ 691 "StartTag", 692 "option", 693 {} 694 ], 695 [ 696 "EndTag", 697 "option" 698 ], 699 [ 700 "StartTag", 701 "template", 702 {} 703 ] 704 ] 705 }, 706 { 707 "fragmentContext": null, 708 "description": "<select><option></option><template><option>", 709 "input": "<select><option></option><template><option>", 710 "output": [ 711 [ 712 "StartTag", 713 "select", 714 {} 715 ], 716 [ 717 "StartTag", 718 "option", 719 {} 720 ], 721 [ 722 "EndTag", 723 "option" 724 ], 725 [ 726 "StartTag", 727 "template", 728 {} 729 ], 730 [ 731 "StartTag", 732 "option", 733 {} 734 ] 735 ] 736 }, 737 { 738 "fragmentContext": null, 739 "description": "<table><thead><template><td></template></table>", 740 "input": "<table><thead><template><td></template></table>", 741 "output": [ 742 [ 743 "StartTag", 744 "table", 745 {} 746 ], 747 [ 748 "StartTag", 749 "thead", 750 {} 751 ], 752 [ 753 "StartTag", 754 "template", 755 {} 756 ], 757 [ 758 "StartTag", 759 "td", 760 {} 761 ], 762 [ 763 "EndTag", 764 "template" 765 ], 766 [ 767 "EndTag", 768 "table" 769 ] 770 ] 771 }, 772 { 773 "fragmentContext": null, 774 "description": "<table><template><thead></template></table>", 775 "input": "<table><template><thead></template></table>", 776 "output": [ 777 [ 778 "StartTag", 779 "table", 780 {} 781 ], 782 [ 783 "StartTag", 784 "template", 785 {} 786 ], 787 [ 788 "StartTag", 789 "thead", 790 {} 791 ], 792 [ 793 "EndTag", 794 "template" 795 ], 796 [ 797 "EndTag", 798 "table" 799 ] 800 ] 801 }, 802 { 803 "fragmentContext": null, 804 "description": "<body><table><template><td></tr><div></template></table>", 805 "input": "<body><table><template><td></tr><div></template></table>", 806 "output": [ 807 [ 808 "StartTag", 809 "body", 810 {} 811 ], 812 [ 813 "StartTag", 814 "table", 815 {} 816 ], 817 [ 818 "StartTag", 819 "template", 820 {} 821 ], 822 [ 823 "StartTag", 824 "td", 825 {} 826 ], 827 [ 828 "EndTag", 829 "tr" 830 ], 831 [ 832 "StartTag", 833 "div", 834 {} 835 ], 836 [ 837 "EndTag", 838 "template" 839 ], 840 [ 841 "EndTag", 842 "table" 843 ] 844 ] 845 }, 846 { 847 "fragmentContext": null, 848 "description": "<table><template><thead></template></thead></table>", 849 "input": "<table><template><thead></template></thead></table>", 850 "output": [ 851 [ 852 "StartTag", 853 "table", 854 {} 855 ], 856 [ 857 "StartTag", 858 "template", 859 {} 860 ], 861 [ 862 "StartTag", 863 "thead", 864 {} 865 ], 866 [ 867 "EndTag", 868 "template" 869 ], 870 [ 871 "EndTag", 872 "thead" 873 ], 874 [ 875 "EndTag", 876 "table" 877 ] 878 ] 879 }, 880 { 881 "fragmentContext": null, 882 "description": "<table><thead><template><tr></template></table>", 883 "input": "<table><thead><template><tr></template></table>", 884 "output": [ 885 [ 886 "StartTag", 887 "table", 888 {} 889 ], 890 [ 891 "StartTag", 892 "thead", 893 {} 894 ], 895 [ 896 "StartTag", 897 "template", 898 {} 899 ], 900 [ 901 "StartTag", 902 "tr", 903 {} 904 ], 905 [ 906 "EndTag", 907 "template" 908 ], 909 [ 910 "EndTag", 911 "table" 912 ] 913 ] 914 }, 915 { 916 "fragmentContext": null, 917 "description": "<table><template><tr></template></table>", 918 "input": "<table><template><tr></template></table>", 919 "output": [ 920 [ 921 "StartTag", 922 "table", 923 {} 924 ], 925 [ 926 "StartTag", 927 "template", 928 {} 929 ], 930 [ 931 "StartTag", 932 "tr", 933 {} 934 ], 935 [ 936 "EndTag", 937 "template" 938 ], 939 [ 940 "EndTag", 941 "table" 942 ] 943 ] 944 }, 945 { 946 "fragmentContext": null, 947 "description": "<table><tr><template><td>", 948 "input": "<table><tr><template><td>", 949 "output": [ 950 [ 951 "StartTag", 952 "table", 953 {} 954 ], 955 [ 956 "StartTag", 957 "tr", 958 {} 959 ], 960 [ 961 "StartTag", 962 "template", 963 {} 964 ], 965 [ 966 "StartTag", 967 "td", 968 {} 969 ] 970 ] 971 }, 972 { 973 "fragmentContext": null, 974 "description": "<table><template><tr><template><td></template></tr></template></table>", 975 "input": "<table><template><tr><template><td></template></tr></template></table>", 976 "output": [ 977 [ 978 "StartTag", 979 "table", 980 {} 981 ], 982 [ 983 "StartTag", 984 "template", 985 {} 986 ], 987 [ 988 "StartTag", 989 "tr", 990 {} 991 ], 992 [ 993 "StartTag", 994 "template", 995 {} 996 ], 997 [ 998 "StartTag", 999 "td", 1000 {} 1001 ], 1002 [ 1003 "EndTag", 1004 "template" 1005 ], 1006 [ 1007 "EndTag", 1008 "tr" 1009 ], 1010 [ 1011 "EndTag", 1012 "template" 1013 ], 1014 [ 1015 "EndTag", 1016 "table" 1017 ] 1018 ] 1019 }, 1020 { 1021 "fragmentContext": null, 1022 "description": "<table><template><tr><template><td></td></template></tr></template></table>", 1023 "input": "<table><template><tr><template><td></td></template></tr></template></table>", 1024 "output": [ 1025 [ 1026 "StartTag", 1027 "table", 1028 {} 1029 ], 1030 [ 1031 "StartTag", 1032 "template", 1033 {} 1034 ], 1035 [ 1036 "StartTag", 1037 "tr", 1038 {} 1039 ], 1040 [ 1041 "StartTag", 1042 "template", 1043 {} 1044 ], 1045 [ 1046 "StartTag", 1047 "td", 1048 {} 1049 ], 1050 [ 1051 "EndTag", 1052 "td" 1053 ], 1054 [ 1055 "EndTag", 1056 "template" 1057 ], 1058 [ 1059 "EndTag", 1060 "tr" 1061 ], 1062 [ 1063 "EndTag", 1064 "template" 1065 ], 1066 [ 1067 "EndTag", 1068 "table" 1069 ] 1070 ] 1071 }, 1072 { 1073 "fragmentContext": null, 1074 "description": "<table><template><td></template>", 1075 "input": "<table><template><td></template>", 1076 "output": [ 1077 [ 1078 "StartTag", 1079 "table", 1080 {} 1081 ], 1082 [ 1083 "StartTag", 1084 "template", 1085 {} 1086 ], 1087 [ 1088 "StartTag", 1089 "td", 1090 {} 1091 ], 1092 [ 1093 "EndTag", 1094 "template" 1095 ] 1096 ] 1097 }, 1098 { 1099 "fragmentContext": null, 1100 "description": "<body><template><td></td></template>", 1101 "input": "<body><template><td></td></template>", 1102 "output": [ 1103 [ 1104 "StartTag", 1105 "body", 1106 {} 1107 ], 1108 [ 1109 "StartTag", 1110 "template", 1111 {} 1112 ], 1113 [ 1114 "StartTag", 1115 "td", 1116 {} 1117 ], 1118 [ 1119 "EndTag", 1120 "td" 1121 ], 1122 [ 1123 "EndTag", 1124 "template" 1125 ] 1126 ] 1127 }, 1128 { 1129 "fragmentContext": null, 1130 "description": "<body><template><template><tr></tr></template><td></td></template>", 1131 "input": "<body><template><template><tr></tr></template><td></td></template>", 1132 "output": [ 1133 [ 1134 "StartTag", 1135 "body", 1136 {} 1137 ], 1138 [ 1139 "StartTag", 1140 "template", 1141 {} 1142 ], 1143 [ 1144 "StartTag", 1145 "template", 1146 {} 1147 ], 1148 [ 1149 "StartTag", 1150 "tr", 1151 {} 1152 ], 1153 [ 1154 "EndTag", 1155 "tr" 1156 ], 1157 [ 1158 "EndTag", 1159 "template" 1160 ], 1161 [ 1162 "StartTag", 1163 "td", 1164 {} 1165 ], 1166 [ 1167 "EndTag", 1168 "td" 1169 ], 1170 [ 1171 "EndTag", 1172 "template" 1173 ] 1174 ] 1175 }, 1176 { 1177 "fragmentContext": null, 1178 "description": "<table><colgroup><template><col>", 1179 "input": "<table><colgroup><template><col>", 1180 "output": [ 1181 [ 1182 "StartTag", 1183 "table", 1184 {} 1185 ], 1186 [ 1187 "StartTag", 1188 "colgroup", 1189 {} 1190 ], 1191 [ 1192 "StartTag", 1193 "template", 1194 {} 1195 ], 1196 [ 1197 "StartTag", 1198 "col", 1199 {} 1200 ] 1201 ] 1202 }, 1203 { 1204 "fragmentContext": null, 1205 "description": "<frameset><template><frame></frame></template></frameset>", 1206 "input": "<frameset><template><frame></frame></template></frameset>", 1207 "output": [ 1208 [ 1209 "StartTag", 1210 "frameset", 1211 {} 1212 ], 1213 [ 1214 "StartTag", 1215 "template", 1216 {} 1217 ], 1218 [ 1219 "StartTag", 1220 "frame", 1221 {} 1222 ], 1223 [ 1224 "EndTag", 1225 "frame" 1226 ], 1227 [ 1228 "EndTag", 1229 "template" 1230 ], 1231 [ 1232 "EndTag", 1233 "frameset" 1234 ] 1235 ] 1236 }, 1237 { 1238 "fragmentContext": null, 1239 "description": "<template><frame></frame></frameset><frame></frame></template>", 1240 "input": "<template><frame></frame></frameset><frame></frame></template>", 1241 "output": [ 1242 [ 1243 "StartTag", 1244 "template", 1245 {} 1246 ], 1247 [ 1248 "StartTag", 1249 "frame", 1250 {} 1251 ], 1252 [ 1253 "EndTag", 1254 "frame" 1255 ], 1256 [ 1257 "EndTag", 1258 "frameset" 1259 ], 1260 [ 1261 "StartTag", 1262 "frame", 1263 {} 1264 ], 1265 [ 1266 "EndTag", 1267 "frame" 1268 ], 1269 [ 1270 "EndTag", 1271 "template" 1272 ] 1273 ] 1274 }, 1275 { 1276 "fragmentContext": null, 1277 "description": "<template><div><frameset><span></span></div><span></span></template>", 1278 "input": "<template><div><frameset><span></span></div><span></span></template>", 1279 "output": [ 1280 [ 1281 "StartTag", 1282 "template", 1283 {} 1284 ], 1285 [ 1286 "StartTag", 1287 "div", 1288 {} 1289 ], 1290 [ 1291 "StartTag", 1292 "frameset", 1293 {} 1294 ], 1295 [ 1296 "StartTag", 1297 "span", 1298 {} 1299 ], 1300 [ 1301 "EndTag", 1302 "span" 1303 ], 1304 [ 1305 "EndTag", 1306 "div" 1307 ], 1308 [ 1309 "StartTag", 1310 "span", 1311 {} 1312 ], 1313 [ 1314 "EndTag", 1315 "span" 1316 ], 1317 [ 1318 "EndTag", 1319 "template" 1320 ] 1321 ] 1322 }, 1323 { 1324 "fragmentContext": null, 1325 "description": "<body><template><div><frameset><span></span></div><span></span></template></body>", 1326 "input": "<body><template><div><frameset><span></span></div><span></span></template></body>", 1327 "output": [ 1328 [ 1329 "StartTag", 1330 "body", 1331 {} 1332 ], 1333 [ 1334 "StartTag", 1335 "template", 1336 {} 1337 ], 1338 [ 1339 "StartTag", 1340 "div", 1341 {} 1342 ], 1343 [ 1344 "StartTag", 1345 "frameset", 1346 {} 1347 ], 1348 [ 1349 "StartTag", 1350 "span", 1351 {} 1352 ], 1353 [ 1354 "EndTag", 1355 "span" 1356 ], 1357 [ 1358 "EndTag", 1359 "div" 1360 ], 1361 [ 1362 "StartTag", 1363 "span", 1364 {} 1365 ], 1366 [ 1367 "EndTag", 1368 "span" 1369 ], 1370 [ 1371 "EndTag", 1372 "template" 1373 ], 1374 [ 1375 "EndTag", 1376 "body" 1377 ] 1378 ] 1379 }, 1380 { 1381 "fragmentContext": null, 1382 "description": "<body><template><script>var i = 1;</script><td></td></template>", 1383 "input": "<body><template><script>var i = 1;</script><td></td></template>", 1384 "output": [ 1385 [ 1386 "StartTag", 1387 "body", 1388 {} 1389 ], 1390 [ 1391 "StartTag", 1392 "template", 1393 {} 1394 ], 1395 [ 1396 "StartTag", 1397 "script", 1398 {} 1399 ], 1400 [ 1401 "Character", 1402 "var i = 1;" 1403 ], 1404 [ 1405 "EndTag", 1406 "script" 1407 ], 1408 [ 1409 "StartTag", 1410 "td", 1411 {} 1412 ], 1413 [ 1414 "EndTag", 1415 "td" 1416 ], 1417 [ 1418 "EndTag", 1419 "template" 1420 ] 1421 ] 1422 }, 1423 { 1424 "fragmentContext": null, 1425 "description": "<body><template><tr><div></div></tr></template>", 1426 "input": "<body><template><tr><div></div></tr></template>", 1427 "output": [ 1428 [ 1429 "StartTag", 1430 "body", 1431 {} 1432 ], 1433 [ 1434 "StartTag", 1435 "template", 1436 {} 1437 ], 1438 [ 1439 "StartTag", 1440 "tr", 1441 {} 1442 ], 1443 [ 1444 "StartTag", 1445 "div", 1446 {} 1447 ], 1448 [ 1449 "EndTag", 1450 "div" 1451 ], 1452 [ 1453 "EndTag", 1454 "tr" 1455 ], 1456 [ 1457 "EndTag", 1458 "template" 1459 ] 1460 ] 1461 }, 1462 { 1463 "fragmentContext": null, 1464 "description": "<body><template><tr></tr><td></td></template>", 1465 "input": "<body><template><tr></tr><td></td></template>", 1466 "output": [ 1467 [ 1468 "StartTag", 1469 "body", 1470 {} 1471 ], 1472 [ 1473 "StartTag", 1474 "template", 1475 {} 1476 ], 1477 [ 1478 "StartTag", 1479 "tr", 1480 {} 1481 ], 1482 [ 1483 "EndTag", 1484 "tr" 1485 ], 1486 [ 1487 "StartTag", 1488 "td", 1489 {} 1490 ], 1491 [ 1492 "EndTag", 1493 "td" 1494 ], 1495 [ 1496 "EndTag", 1497 "template" 1498 ] 1499 ] 1500 }, 1501 { 1502 "fragmentContext": null, 1503 "description": "<body><template><td></td></tr><td></td></template>", 1504 "input": "<body><template><td></td></tr><td></td></template>", 1505 "output": [ 1506 [ 1507 "StartTag", 1508 "body", 1509 {} 1510 ], 1511 [ 1512 "StartTag", 1513 "template", 1514 {} 1515 ], 1516 [ 1517 "StartTag", 1518 "td", 1519 {} 1520 ], 1521 [ 1522 "EndTag", 1523 "td" 1524 ], 1525 [ 1526 "EndTag", 1527 "tr" 1528 ], 1529 [ 1530 "StartTag", 1531 "td", 1532 {} 1533 ], 1534 [ 1535 "EndTag", 1536 "td" 1537 ], 1538 [ 1539 "EndTag", 1540 "template" 1541 ] 1542 ] 1543 }, 1544 { 1545 "fragmentContext": null, 1546 "description": "<body><template><td></td><tbody><td></td></template>", 1547 "input": "<body><template><td></td><tbody><td></td></template>", 1548 "output": [ 1549 [ 1550 "StartTag", 1551 "body", 1552 {} 1553 ], 1554 [ 1555 "StartTag", 1556 "template", 1557 {} 1558 ], 1559 [ 1560 "StartTag", 1561 "td", 1562 {} 1563 ], 1564 [ 1565 "EndTag", 1566 "td" 1567 ], 1568 [ 1569 "StartTag", 1570 "tbody", 1571 {} 1572 ], 1573 [ 1574 "StartTag", 1575 "td", 1576 {} 1577 ], 1578 [ 1579 "EndTag", 1580 "td" 1581 ], 1582 [ 1583 "EndTag", 1584 "template" 1585 ] 1586 ] 1587 }, 1588 { 1589 "fragmentContext": null, 1590 "description": "<body><template><td></td><caption></caption><td></td></template>", 1591 "input": "<body><template><td></td><caption></caption><td></td></template>", 1592 "output": [ 1593 [ 1594 "StartTag", 1595 "body", 1596 {} 1597 ], 1598 [ 1599 "StartTag", 1600 "template", 1601 {} 1602 ], 1603 [ 1604 "StartTag", 1605 "td", 1606 {} 1607 ], 1608 [ 1609 "EndTag", 1610 "td" 1611 ], 1612 [ 1613 "StartTag", 1614 "caption", 1615 {} 1616 ], 1617 [ 1618 "EndTag", 1619 "caption" 1620 ], 1621 [ 1622 "StartTag", 1623 "td", 1624 {} 1625 ], 1626 [ 1627 "EndTag", 1628 "td" 1629 ], 1630 [ 1631 "EndTag", 1632 "template" 1633 ] 1634 ] 1635 }, 1636 { 1637 "fragmentContext": null, 1638 "description": "<body><template><td></td><colgroup></caption><td></td></template>", 1639 "input": "<body><template><td></td><colgroup></caption><td></td></template>", 1640 "output": [ 1641 [ 1642 "StartTag", 1643 "body", 1644 {} 1645 ], 1646 [ 1647 "StartTag", 1648 "template", 1649 {} 1650 ], 1651 [ 1652 "StartTag", 1653 "td", 1654 {} 1655 ], 1656 [ 1657 "EndTag", 1658 "td" 1659 ], 1660 [ 1661 "StartTag", 1662 "colgroup", 1663 {} 1664 ], 1665 [ 1666 "EndTag", 1667 "caption" 1668 ], 1669 [ 1670 "StartTag", 1671 "td", 1672 {} 1673 ], 1674 [ 1675 "EndTag", 1676 "td" 1677 ], 1678 [ 1679 "EndTag", 1680 "template" 1681 ] 1682 ] 1683 }, 1684 { 1685 "fragmentContext": null, 1686 "description": "<body><template><td></td></table><td></td></template>", 1687 "input": "<body><template><td></td></table><td></td></template>", 1688 "output": [ 1689 [ 1690 "StartTag", 1691 "body", 1692 {} 1693 ], 1694 [ 1695 "StartTag", 1696 "template", 1697 {} 1698 ], 1699 [ 1700 "StartTag", 1701 "td", 1702 {} 1703 ], 1704 [ 1705 "EndTag", 1706 "td" 1707 ], 1708 [ 1709 "EndTag", 1710 "table" 1711 ], 1712 [ 1713 "StartTag", 1714 "td", 1715 {} 1716 ], 1717 [ 1718 "EndTag", 1719 "td" 1720 ], 1721 [ 1722 "EndTag", 1723 "template" 1724 ] 1725 ] 1726 }, 1727 { 1728 "fragmentContext": null, 1729 "description": "<body><template><tr></tr><tbody><tr></tr></template>", 1730 "input": "<body><template><tr></tr><tbody><tr></tr></template>", 1731 "output": [ 1732 [ 1733 "StartTag", 1734 "body", 1735 {} 1736 ], 1737 [ 1738 "StartTag", 1739 "template", 1740 {} 1741 ], 1742 [ 1743 "StartTag", 1744 "tr", 1745 {} 1746 ], 1747 [ 1748 "EndTag", 1749 "tr" 1750 ], 1751 [ 1752 "StartTag", 1753 "tbody", 1754 {} 1755 ], 1756 [ 1757 "StartTag", 1758 "tr", 1759 {} 1760 ], 1761 [ 1762 "EndTag", 1763 "tr" 1764 ], 1765 [ 1766 "EndTag", 1767 "template" 1768 ] 1769 ] 1770 }, 1771 { 1772 "fragmentContext": null, 1773 "description": "<body><template><tr></tr><caption><tr></tr></template>", 1774 "input": "<body><template><tr></tr><caption><tr></tr></template>", 1775 "output": [ 1776 [ 1777 "StartTag", 1778 "body", 1779 {} 1780 ], 1781 [ 1782 "StartTag", 1783 "template", 1784 {} 1785 ], 1786 [ 1787 "StartTag", 1788 "tr", 1789 {} 1790 ], 1791 [ 1792 "EndTag", 1793 "tr" 1794 ], 1795 [ 1796 "StartTag", 1797 "caption", 1798 {} 1799 ], 1800 [ 1801 "StartTag", 1802 "tr", 1803 {} 1804 ], 1805 [ 1806 "EndTag", 1807 "tr" 1808 ], 1809 [ 1810 "EndTag", 1811 "template" 1812 ] 1813 ] 1814 }, 1815 { 1816 "fragmentContext": null, 1817 "description": "<body><template><tr></tr></table><tr></tr></template>", 1818 "input": "<body><template><tr></tr></table><tr></tr></template>", 1819 "output": [ 1820 [ 1821 "StartTag", 1822 "body", 1823 {} 1824 ], 1825 [ 1826 "StartTag", 1827 "template", 1828 {} 1829 ], 1830 [ 1831 "StartTag", 1832 "tr", 1833 {} 1834 ], 1835 [ 1836 "EndTag", 1837 "tr" 1838 ], 1839 [ 1840 "EndTag", 1841 "table" 1842 ], 1843 [ 1844 "StartTag", 1845 "tr", 1846 {} 1847 ], 1848 [ 1849 "EndTag", 1850 "tr" 1851 ], 1852 [ 1853 "EndTag", 1854 "template" 1855 ] 1856 ] 1857 }, 1858 { 1859 "fragmentContext": null, 1860 "description": "<body><template><thead></thead><caption></caption><tbody></tbody></template>", 1861 "input": "<body><template><thead></thead><caption></caption><tbody></tbody></template>", 1862 "output": [ 1863 [ 1864 "StartTag", 1865 "body", 1866 {} 1867 ], 1868 [ 1869 "StartTag", 1870 "template", 1871 {} 1872 ], 1873 [ 1874 "StartTag", 1875 "thead", 1876 {} 1877 ], 1878 [ 1879 "EndTag", 1880 "thead" 1881 ], 1882 [ 1883 "StartTag", 1884 "caption", 1885 {} 1886 ], 1887 [ 1888 "EndTag", 1889 "caption" 1890 ], 1891 [ 1892 "StartTag", 1893 "tbody", 1894 {} 1895 ], 1896 [ 1897 "EndTag", 1898 "tbody" 1899 ], 1900 [ 1901 "EndTag", 1902 "template" 1903 ] 1904 ] 1905 }, 1906 { 1907 "fragmentContext": null, 1908 "description": "<body><template><thead></thead></table><tbody></tbody></template></body>", 1909 "input": "<body><template><thead></thead></table><tbody></tbody></template></body>", 1910 "output": [ 1911 [ 1912 "StartTag", 1913 "body", 1914 {} 1915 ], 1916 [ 1917 "StartTag", 1918 "template", 1919 {} 1920 ], 1921 [ 1922 "StartTag", 1923 "thead", 1924 {} 1925 ], 1926 [ 1927 "EndTag", 1928 "thead" 1929 ], 1930 [ 1931 "EndTag", 1932 "table" 1933 ], 1934 [ 1935 "StartTag", 1936 "tbody", 1937 {} 1938 ], 1939 [ 1940 "EndTag", 1941 "tbody" 1942 ], 1943 [ 1944 "EndTag", 1945 "template" 1946 ], 1947 [ 1948 "EndTag", 1949 "body" 1950 ] 1951 ] 1952 }, 1953 { 1954 "fragmentContext": null, 1955 "description": "<body><template><div><tr></tr></div></template>", 1956 "input": "<body><template><div><tr></tr></div></template>", 1957 "output": [ 1958 [ 1959 "StartTag", 1960 "body", 1961 {} 1962 ], 1963 [ 1964 "StartTag", 1965 "template", 1966 {} 1967 ], 1968 [ 1969 "StartTag", 1970 "div", 1971 {} 1972 ], 1973 [ 1974 "StartTag", 1975 "tr", 1976 {} 1977 ], 1978 [ 1979 "EndTag", 1980 "tr" 1981 ], 1982 [ 1983 "EndTag", 1984 "div" 1985 ], 1986 [ 1987 "EndTag", 1988 "template" 1989 ] 1990 ] 1991 }, 1992 { 1993 "fragmentContext": null, 1994 "description": "<body><template><em>Hello</em></template>", 1995 "input": "<body><template><em>Hello</em></template>", 1996 "output": [ 1997 [ 1998 "StartTag", 1999 "body", 2000 {} 2001 ], 2002 [ 2003 "StartTag", 2004 "template", 2005 {} 2006 ], 2007 [ 2008 "StartTag", 2009 "em", 2010 {} 2011 ], 2012 [ 2013 "Character", 2014 "Hello" 2015 ], 2016 [ 2017 "EndTag", 2018 "em" 2019 ], 2020 [ 2021 "EndTag", 2022 "template" 2023 ] 2024 ] 2025 }, 2026 { 2027 "fragmentContext": null, 2028 "description": "<body><template><!--comment--></template>", 2029 "input": "<body><template><!--comment--></template>", 2030 "output": [ 2031 [ 2032 "StartTag", 2033 "body", 2034 {} 2035 ], 2036 [ 2037 "StartTag", 2038 "template", 2039 {} 2040 ], 2041 [ 2042 "Comment", 2043 "comment" 2044 ], 2045 [ 2046 "EndTag", 2047 "template" 2048 ] 2049 ] 2050 }, 2051 { 2052 "fragmentContext": null, 2053 "description": "<body><template><style></style><td></td></template>", 2054 "input": "<body><template><style></style><td></td></template>", 2055 "output": [ 2056 [ 2057 "StartTag", 2058 "body", 2059 {} 2060 ], 2061 [ 2062 "StartTag", 2063 "template", 2064 {} 2065 ], 2066 [ 2067 "StartTag", 2068 "style", 2069 {} 2070 ], 2071 [ 2072 "EndTag", 2073 "style" 2074 ], 2075 [ 2076 "StartTag", 2077 "td", 2078 {} 2079 ], 2080 [ 2081 "EndTag", 2082 "td" 2083 ], 2084 [ 2085 "EndTag", 2086 "template" 2087 ] 2088 ] 2089 }, 2090 { 2091 "fragmentContext": null, 2092 "description": "<body><template><meta><td></td></template>", 2093 "input": "<body><template><meta><td></td></template>", 2094 "output": [ 2095 [ 2096 "StartTag", 2097 "body", 2098 {} 2099 ], 2100 [ 2101 "StartTag", 2102 "template", 2103 {} 2104 ], 2105 [ 2106 "StartTag", 2107 "meta", 2108 {} 2109 ], 2110 [ 2111 "StartTag", 2112 "td", 2113 {} 2114 ], 2115 [ 2116 "EndTag", 2117 "td" 2118 ], 2119 [ 2120 "EndTag", 2121 "template" 2122 ] 2123 ] 2124 }, 2125 { 2126 "fragmentContext": null, 2127 "description": "<body><template><link><td></td></template>", 2128 "input": "<body><template><link><td></td></template>", 2129 "output": [ 2130 [ 2131 "StartTag", 2132 "body", 2133 {} 2134 ], 2135 [ 2136 "StartTag", 2137 "template", 2138 {} 2139 ], 2140 [ 2141 "StartTag", 2142 "link", 2143 {} 2144 ], 2145 [ 2146 "StartTag", 2147 "td", 2148 {} 2149 ], 2150 [ 2151 "EndTag", 2152 "td" 2153 ], 2154 [ 2155 "EndTag", 2156 "template" 2157 ] 2158 ] 2159 }, 2160 { 2161 "fragmentContext": null, 2162 "description": "<body><template><template><tr></tr></template><td></td></template>", 2163 "input": "<body><template><template><tr></tr></template><td></td></template>", 2164 "output": [ 2165 [ 2166 "StartTag", 2167 "body", 2168 {} 2169 ], 2170 [ 2171 "StartTag", 2172 "template", 2173 {} 2174 ], 2175 [ 2176 "StartTag", 2177 "template", 2178 {} 2179 ], 2180 [ 2181 "StartTag", 2182 "tr", 2183 {} 2184 ], 2185 [ 2186 "EndTag", 2187 "tr" 2188 ], 2189 [ 2190 "EndTag", 2191 "template" 2192 ], 2193 [ 2194 "StartTag", 2195 "td", 2196 {} 2197 ], 2198 [ 2199 "EndTag", 2200 "td" 2201 ], 2202 [ 2203 "EndTag", 2204 "template" 2205 ] 2206 ] 2207 }, 2208 { 2209 "fragmentContext": null, 2210 "description": "<body><table><colgroup><template><col></col></template></colgroup></table></body>", 2211 "input": "<body><table><colgroup><template><col></col></template></colgroup></table></body>", 2212 "output": [ 2213 [ 2214 "StartTag", 2215 "body", 2216 {} 2217 ], 2218 [ 2219 "StartTag", 2220 "table", 2221 {} 2222 ], 2223 [ 2224 "StartTag", 2225 "colgroup", 2226 {} 2227 ], 2228 [ 2229 "StartTag", 2230 "template", 2231 {} 2232 ], 2233 [ 2234 "StartTag", 2235 "col", 2236 {} 2237 ], 2238 [ 2239 "EndTag", 2240 "col" 2241 ], 2242 [ 2243 "EndTag", 2244 "template" 2245 ], 2246 [ 2247 "EndTag", 2248 "colgroup" 2249 ], 2250 [ 2251 "EndTag", 2252 "table" 2253 ], 2254 [ 2255 "EndTag", 2256 "body" 2257 ] 2258 ] 2259 }, 2260 { 2261 "fragmentContext": null, 2262 "description": "<body a=b><template><div></div><body c=d><div></div></body></template></body>", 2263 "input": "<body a=b><template><div></div><body c=d><div></div></body></template></body>", 2264 "output": [ 2265 [ 2266 "StartTag", 2267 "body", 2268 { 2269 "a": "b" 2270 } 2271 ], 2272 [ 2273 "StartTag", 2274 "template", 2275 {} 2276 ], 2277 [ 2278 "StartTag", 2279 "div", 2280 {} 2281 ], 2282 [ 2283 "EndTag", 2284 "div" 2285 ], 2286 [ 2287 "StartTag", 2288 "body", 2289 { 2290 "c": "d" 2291 } 2292 ], 2293 [ 2294 "StartTag", 2295 "div", 2296 {} 2297 ], 2298 [ 2299 "EndTag", 2300 "div" 2301 ], 2302 [ 2303 "EndTag", 2304 "body" 2305 ], 2306 [ 2307 "EndTag", 2308 "template" 2309 ], 2310 [ 2311 "EndTag", 2312 "body" 2313 ] 2314 ] 2315 }, 2316 { 2317 "fragmentContext": null, 2318 "description": "<html a=b><template><div><html b=c><span></template>", 2319 "input": "<html a=b><template><div><html b=c><span></template>", 2320 "output": [ 2321 [ 2322 "StartTag", 2323 "html", 2324 { 2325 "a": "b" 2326 } 2327 ], 2328 [ 2329 "StartTag", 2330 "template", 2331 {} 2332 ], 2333 [ 2334 "StartTag", 2335 "div", 2336 {} 2337 ], 2338 [ 2339 "StartTag", 2340 "html", 2341 { 2342 "b": "c" 2343 } 2344 ], 2345 [ 2346 "StartTag", 2347 "span", 2348 {} 2349 ], 2350 [ 2351 "EndTag", 2352 "template" 2353 ] 2354 ] 2355 }, 2356 { 2357 "fragmentContext": null, 2358 "description": "<html a=b><template><col></col><html b=c><col></col></template>", 2359 "input": "<html a=b><template><col></col><html b=c><col></col></template>", 2360 "output": [ 2361 [ 2362 "StartTag", 2363 "html", 2364 { 2365 "a": "b" 2366 } 2367 ], 2368 [ 2369 "StartTag", 2370 "template", 2371 {} 2372 ], 2373 [ 2374 "StartTag", 2375 "col", 2376 {} 2377 ], 2378 [ 2379 "EndTag", 2380 "col" 2381 ], 2382 [ 2383 "StartTag", 2384 "html", 2385 { 2386 "b": "c" 2387 } 2388 ], 2389 [ 2390 "StartTag", 2391 "col", 2392 {} 2393 ], 2394 [ 2395 "EndTag", 2396 "col" 2397 ], 2398 [ 2399 "EndTag", 2400 "template" 2401 ] 2402 ] 2403 }, 2404 { 2405 "fragmentContext": null, 2406 "description": "<html a=b><template><frame></frame><html b=c><frame></frame></template>", 2407 "input": "<html a=b><template><frame></frame><html b=c><frame></frame></template>", 2408 "output": [ 2409 [ 2410 "StartTag", 2411 "html", 2412 { 2413 "a": "b" 2414 } 2415 ], 2416 [ 2417 "StartTag", 2418 "template", 2419 {} 2420 ], 2421 [ 2422 "StartTag", 2423 "frame", 2424 {} 2425 ], 2426 [ 2427 "EndTag", 2428 "frame" 2429 ], 2430 [ 2431 "StartTag", 2432 "html", 2433 { 2434 "b": "c" 2435 } 2436 ], 2437 [ 2438 "StartTag", 2439 "frame", 2440 {} 2441 ], 2442 [ 2443 "EndTag", 2444 "frame" 2445 ], 2446 [ 2447 "EndTag", 2448 "template" 2449 ] 2450 ] 2451 }, 2452 { 2453 "fragmentContext": null, 2454 "description": "<body><template><tr></tr><template></template><td></td></template>", 2455 "input": "<body><template><tr></tr><template></template><td></td></template>", 2456 "output": [ 2457 [ 2458 "StartTag", 2459 "body", 2460 {} 2461 ], 2462 [ 2463 "StartTag", 2464 "template", 2465 {} 2466 ], 2467 [ 2468 "StartTag", 2469 "tr", 2470 {} 2471 ], 2472 [ 2473 "EndTag", 2474 "tr" 2475 ], 2476 [ 2477 "StartTag", 2478 "template", 2479 {} 2480 ], 2481 [ 2482 "EndTag", 2483 "template" 2484 ], 2485 [ 2486 "StartTag", 2487 "td", 2488 {} 2489 ], 2490 [ 2491 "EndTag", 2492 "td" 2493 ], 2494 [ 2495 "EndTag", 2496 "template" 2497 ] 2498 ] 2499 }, 2500 { 2501 "fragmentContext": null, 2502 "description": "<body><template><thead></thead><template><tr></tr></template><tr></tr><tfoot></tfoot></template>", 2503 "input": "<body><template><thead></thead><template><tr></tr></template><tr></tr><tfoot></tfoot></template>", 2504 "output": [ 2505 [ 2506 "StartTag", 2507 "body", 2508 {} 2509 ], 2510 [ 2511 "StartTag", 2512 "template", 2513 {} 2514 ], 2515 [ 2516 "StartTag", 2517 "thead", 2518 {} 2519 ], 2520 [ 2521 "EndTag", 2522 "thead" 2523 ], 2524 [ 2525 "StartTag", 2526 "template", 2527 {} 2528 ], 2529 [ 2530 "StartTag", 2531 "tr", 2532 {} 2533 ], 2534 [ 2535 "EndTag", 2536 "tr" 2537 ], 2538 [ 2539 "EndTag", 2540 "template" 2541 ], 2542 [ 2543 "StartTag", 2544 "tr", 2545 {} 2546 ], 2547 [ 2548 "EndTag", 2549 "tr" 2550 ], 2551 [ 2552 "StartTag", 2553 "tfoot", 2554 {} 2555 ], 2556 [ 2557 "EndTag", 2558 "tfoot" 2559 ], 2560 [ 2561 "EndTag", 2562 "template" 2563 ] 2564 ] 2565 }, 2566 { 2567 "fragmentContext": null, 2568 "description": "<body><template><template><b><template></template></template>text</template>", 2569 "input": "<body><template><template><b><template></template></template>text</template>", 2570 "output": [ 2571 [ 2572 "StartTag", 2573 "body", 2574 {} 2575 ], 2576 [ 2577 "StartTag", 2578 "template", 2579 {} 2580 ], 2581 [ 2582 "StartTag", 2583 "template", 2584 {} 2585 ], 2586 [ 2587 "StartTag", 2588 "b", 2589 {} 2590 ], 2591 [ 2592 "StartTag", 2593 "template", 2594 {} 2595 ], 2596 [ 2597 "EndTag", 2598 "template" 2599 ], 2600 [ 2601 "EndTag", 2602 "template" 2603 ], 2604 [ 2605 "Character", 2606 "text" 2607 ], 2608 [ 2609 "EndTag", 2610 "template" 2611 ] 2612 ] 2613 }, 2614 { 2615 "fragmentContext": null, 2616 "description": "<body><template><col><colgroup>", 2617 "input": "<body><template><col><colgroup>", 2618 "output": [ 2619 [ 2620 "StartTag", 2621 "body", 2622 {} 2623 ], 2624 [ 2625 "StartTag", 2626 "template", 2627 {} 2628 ], 2629 [ 2630 "StartTag", 2631 "col", 2632 {} 2633 ], 2634 [ 2635 "StartTag", 2636 "colgroup", 2637 {} 2638 ] 2639 ] 2640 }, 2641 { 2642 "fragmentContext": null, 2643 "description": "<body><template><col></colgroup>", 2644 "input": "<body><template><col></colgroup>", 2645 "output": [ 2646 [ 2647 "StartTag", 2648 "body", 2649 {} 2650 ], 2651 [ 2652 "StartTag", 2653 "template", 2654 {} 2655 ], 2656 [ 2657 "StartTag", 2658 "col", 2659 {} 2660 ], 2661 [ 2662 "EndTag", 2663 "colgroup" 2664 ] 2665 ] 2666 }, 2667 { 2668 "fragmentContext": null, 2669 "description": "<body><template><col><colgroup></template></body>", 2670 "input": "<body><template><col><colgroup></template></body>", 2671 "output": [ 2672 [ 2673 "StartTag", 2674 "body", 2675 {} 2676 ], 2677 [ 2678 "StartTag", 2679 "template", 2680 {} 2681 ], 2682 [ 2683 "StartTag", 2684 "col", 2685 {} 2686 ], 2687 [ 2688 "StartTag", 2689 "colgroup", 2690 {} 2691 ], 2692 [ 2693 "EndTag", 2694 "template" 2695 ], 2696 [ 2697 "EndTag", 2698 "body" 2699 ] 2700 ] 2701 }, 2702 { 2703 "fragmentContext": null, 2704 "description": "<body><template><col><div>", 2705 "input": "<body><template><col><div>", 2706 "output": [ 2707 [ 2708 "StartTag", 2709 "body", 2710 {} 2711 ], 2712 [ 2713 "StartTag", 2714 "template", 2715 {} 2716 ], 2717 [ 2718 "StartTag", 2719 "col", 2720 {} 2721 ], 2722 [ 2723 "StartTag", 2724 "div", 2725 {} 2726 ] 2727 ] 2728 }, 2729 { 2730 "fragmentContext": null, 2731 "description": "<body><template><col></div>", 2732 "input": "<body><template><col></div>", 2733 "output": [ 2734 [ 2735 "StartTag", 2736 "body", 2737 {} 2738 ], 2739 [ 2740 "StartTag", 2741 "template", 2742 {} 2743 ], 2744 [ 2745 "StartTag", 2746 "col", 2747 {} 2748 ], 2749 [ 2750 "EndTag", 2751 "div" 2752 ] 2753 ] 2754 }, 2755 { 2756 "fragmentContext": null, 2757 "description": "<body><template><col>Hello", 2758 "input": "<body><template><col>Hello", 2759 "output": [ 2760 [ 2761 "StartTag", 2762 "body", 2763 {} 2764 ], 2765 [ 2766 "StartTag", 2767 "template", 2768 {} 2769 ], 2770 [ 2771 "StartTag", 2772 "col", 2773 {} 2774 ], 2775 [ 2776 "Character", 2777 "Hello" 2778 ] 2779 ] 2780 }, 2781 { 2782 "fragmentContext": null, 2783 "description": "<body><template><i><menu>Foo</i>", 2784 "input": "<body><template><i><menu>Foo</i>", 2785 "output": [ 2786 [ 2787 "StartTag", 2788 "body", 2789 {} 2790 ], 2791 [ 2792 "StartTag", 2793 "template", 2794 {} 2795 ], 2796 [ 2797 "StartTag", 2798 "i", 2799 {} 2800 ], 2801 [ 2802 "StartTag", 2803 "menu", 2804 {} 2805 ], 2806 [ 2807 "Character", 2808 "Foo" 2809 ], 2810 [ 2811 "EndTag", 2812 "i" 2813 ] 2814 ] 2815 }, 2816 { 2817 "fragmentContext": null, 2818 "description": "<body><template></div><div>Foo</div><template></template><tr></tr>", 2819 "input": "<body><template></div><div>Foo</div><template></template><tr></tr>", 2820 "output": [ 2821 [ 2822 "StartTag", 2823 "body", 2824 {} 2825 ], 2826 [ 2827 "StartTag", 2828 "template", 2829 {} 2830 ], 2831 [ 2832 "EndTag", 2833 "div" 2834 ], 2835 [ 2836 "StartTag", 2837 "div", 2838 {} 2839 ], 2840 [ 2841 "Character", 2842 "Foo" 2843 ], 2844 [ 2845 "EndTag", 2846 "div" 2847 ], 2848 [ 2849 "StartTag", 2850 "template", 2851 {} 2852 ], 2853 [ 2854 "EndTag", 2855 "template" 2856 ], 2857 [ 2858 "StartTag", 2859 "tr", 2860 {} 2861 ], 2862 [ 2863 "EndTag", 2864 "tr" 2865 ] 2866 ] 2867 }, 2868 { 2869 "fragmentContext": null, 2870 "description": "<body><div><template></div><tr><td>Foo</td></tr></template>", 2871 "input": "<body><div><template></div><tr><td>Foo</td></tr></template>", 2872 "output": [ 2873 [ 2874 "StartTag", 2875 "body", 2876 {} 2877 ], 2878 [ 2879 "StartTag", 2880 "div", 2881 {} 2882 ], 2883 [ 2884 "StartTag", 2885 "template", 2886 {} 2887 ], 2888 [ 2889 "EndTag", 2890 "div" 2891 ], 2892 [ 2893 "StartTag", 2894 "tr", 2895 {} 2896 ], 2897 [ 2898 "StartTag", 2899 "td", 2900 {} 2901 ], 2902 [ 2903 "Character", 2904 "Foo" 2905 ], 2906 [ 2907 "EndTag", 2908 "td" 2909 ], 2910 [ 2911 "EndTag", 2912 "tr" 2913 ], 2914 [ 2915 "EndTag", 2916 "template" 2917 ] 2918 ] 2919 }, 2920 { 2921 "fragmentContext": null, 2922 "description": "<template></figcaption><sub><table></table>", 2923 "input": "<template></figcaption><sub><table></table>", 2924 "output": [ 2925 [ 2926 "StartTag", 2927 "template", 2928 {} 2929 ], 2930 [ 2931 "EndTag", 2932 "figcaption" 2933 ], 2934 [ 2935 "StartTag", 2936 "sub", 2937 {} 2938 ], 2939 [ 2940 "StartTag", 2941 "table", 2942 {} 2943 ], 2944 [ 2945 "EndTag", 2946 "table" 2947 ] 2948 ] 2949 }, 2950 { 2951 "fragmentContext": null, 2952 "description": "<template><template>", 2953 "input": "<template><template>", 2954 "output": [ 2955 [ 2956 "StartTag", 2957 "template", 2958 {} 2959 ], 2960 [ 2961 "StartTag", 2962 "template", 2963 {} 2964 ] 2965 ] 2966 }, 2967 { 2968 "fragmentContext": null, 2969 "description": "<template><div>", 2970 "input": "<template><div>", 2971 "output": [ 2972 [ 2973 "StartTag", 2974 "template", 2975 {} 2976 ], 2977 [ 2978 "StartTag", 2979 "div", 2980 {} 2981 ] 2982 ] 2983 }, 2984 { 2985 "fragmentContext": null, 2986 "description": "<template><template><div>", 2987 "input": "<template><template><div>", 2988 "output": [ 2989 [ 2990 "StartTag", 2991 "template", 2992 {} 2993 ], 2994 [ 2995 "StartTag", 2996 "template", 2997 {} 2998 ], 2999 [ 3000 "StartTag", 3001 "div", 3002 {} 3003 ] 3004 ] 3005 }, 3006 { 3007 "fragmentContext": null, 3008 "description": "<template><template><table>", 3009 "input": "<template><template><table>", 3010 "output": [ 3011 [ 3012 "StartTag", 3013 "template", 3014 {} 3015 ], 3016 [ 3017 "StartTag", 3018 "template", 3019 {} 3020 ], 3021 [ 3022 "StartTag", 3023 "table", 3024 {} 3025 ] 3026 ] 3027 }, 3028 { 3029 "fragmentContext": null, 3030 "description": "<template><template><tbody>", 3031 "input": "<template><template><tbody>", 3032 "output": [ 3033 [ 3034 "StartTag", 3035 "template", 3036 {} 3037 ], 3038 [ 3039 "StartTag", 3040 "template", 3041 {} 3042 ], 3043 [ 3044 "StartTag", 3045 "tbody", 3046 {} 3047 ] 3048 ] 3049 }, 3050 { 3051 "fragmentContext": null, 3052 "description": "<template><template><tr>", 3053 "input": "<template><template><tr>", 3054 "output": [ 3055 [ 3056 "StartTag", 3057 "template", 3058 {} 3059 ], 3060 [ 3061 "StartTag", 3062 "template", 3063 {} 3064 ], 3065 [ 3066 "StartTag", 3067 "tr", 3068 {} 3069 ] 3070 ] 3071 }, 3072 { 3073 "fragmentContext": null, 3074 "description": "<template><template><td>", 3075 "input": "<template><template><td>", 3076 "output": [ 3077 [ 3078 "StartTag", 3079 "template", 3080 {} 3081 ], 3082 [ 3083 "StartTag", 3084 "template", 3085 {} 3086 ], 3087 [ 3088 "StartTag", 3089 "td", 3090 {} 3091 ] 3092 ] 3093 }, 3094 { 3095 "fragmentContext": null, 3096 "description": "<template><template><caption>", 3097 "input": "<template><template><caption>", 3098 "output": [ 3099 [ 3100 "StartTag", 3101 "template", 3102 {} 3103 ], 3104 [ 3105 "StartTag", 3106 "template", 3107 {} 3108 ], 3109 [ 3110 "StartTag", 3111 "caption", 3112 {} 3113 ] 3114 ] 3115 }, 3116 { 3117 "fragmentContext": null, 3118 "description": "<template><template><colgroup>", 3119 "input": "<template><template><colgroup>", 3120 "output": [ 3121 [ 3122 "StartTag", 3123 "template", 3124 {} 3125 ], 3126 [ 3127 "StartTag", 3128 "template", 3129 {} 3130 ], 3131 [ 3132 "StartTag", 3133 "colgroup", 3134 {} 3135 ] 3136 ] 3137 }, 3138 { 3139 "fragmentContext": null, 3140 "description": "<template><template><col>", 3141 "input": "<template><template><col>", 3142 "output": [ 3143 [ 3144 "StartTag", 3145 "template", 3146 {} 3147 ], 3148 [ 3149 "StartTag", 3150 "template", 3151 {} 3152 ], 3153 [ 3154 "StartTag", 3155 "col", 3156 {} 3157 ] 3158 ] 3159 }, 3160 { 3161 "fragmentContext": null, 3162 "description": "<template><template><tbody><select>", 3163 "input": "<template><template><tbody><select>", 3164 "output": [ 3165 [ 3166 "StartTag", 3167 "template", 3168 {} 3169 ], 3170 [ 3171 "StartTag", 3172 "template", 3173 {} 3174 ], 3175 [ 3176 "StartTag", 3177 "tbody", 3178 {} 3179 ], 3180 [ 3181 "StartTag", 3182 "select", 3183 {} 3184 ] 3185 ] 3186 }, 3187 { 3188 "fragmentContext": null, 3189 "description": "<template><template><table>Foo", 3190 "input": "<template><template><table>Foo", 3191 "output": [ 3192 [ 3193 "StartTag", 3194 "template", 3195 {} 3196 ], 3197 [ 3198 "StartTag", 3199 "template", 3200 {} 3201 ], 3202 [ 3203 "StartTag", 3204 "table", 3205 {} 3206 ], 3207 [ 3208 "Character", 3209 "Foo" 3210 ] 3211 ] 3212 }, 3213 { 3214 "fragmentContext": null, 3215 "description": "<template><template><frame>", 3216 "input": "<template><template><frame>", 3217 "output": [ 3218 [ 3219 "StartTag", 3220 "template", 3221 {} 3222 ], 3223 [ 3224 "StartTag", 3225 "template", 3226 {} 3227 ], 3228 [ 3229 "StartTag", 3230 "frame", 3231 {} 3232 ] 3233 ] 3234 }, 3235 { 3236 "fragmentContext": null, 3237 "description": "<template><template><script>var i", 3238 "input": "<template><template><script>var i", 3239 "output": [ 3240 [ 3241 "StartTag", 3242 "template", 3243 {} 3244 ], 3245 [ 3246 "StartTag", 3247 "template", 3248 {} 3249 ], 3250 [ 3251 "StartTag", 3252 "script", 3253 {} 3254 ], 3255 [ 3256 "Character", 3257 "var i" 3258 ] 3259 ] 3260 }, 3261 { 3262 "fragmentContext": null, 3263 "description": "<template><template><style>var i", 3264 "input": "<template><template><style>var i", 3265 "output": [ 3266 [ 3267 "StartTag", 3268 "template", 3269 {} 3270 ], 3271 [ 3272 "StartTag", 3273 "template", 3274 {} 3275 ], 3276 [ 3277 "StartTag", 3278 "style", 3279 {} 3280 ], 3281 [ 3282 "Character", 3283 "var i" 3284 ] 3285 ] 3286 }, 3287 { 3288 "fragmentContext": null, 3289 "description": "<template><table></template><body><span>Foo", 3290 "input": "<template><table></template><body><span>Foo", 3291 "output": [ 3292 [ 3293 "StartTag", 3294 "template", 3295 {} 3296 ], 3297 [ 3298 "StartTag", 3299 "table", 3300 {} 3301 ], 3302 [ 3303 "EndTag", 3304 "template" 3305 ], 3306 [ 3307 "StartTag", 3308 "body", 3309 {} 3310 ], 3311 [ 3312 "StartTag", 3313 "span", 3314 {} 3315 ], 3316 [ 3317 "Character", 3318 "Foo" 3319 ] 3320 ] 3321 }, 3322 { 3323 "fragmentContext": null, 3324 "description": "<template><td></template><body><span>Foo", 3325 "input": "<template><td></template><body><span>Foo", 3326 "output": [ 3327 [ 3328 "StartTag", 3329 "template", 3330 {} 3331 ], 3332 [ 3333 "StartTag", 3334 "td", 3335 {} 3336 ], 3337 [ 3338 "EndTag", 3339 "template" 3340 ], 3341 [ 3342 "StartTag", 3343 "body", 3344 {} 3345 ], 3346 [ 3347 "StartTag", 3348 "span", 3349 {} 3350 ], 3351 [ 3352 "Character", 3353 "Foo" 3354 ] 3355 ] 3356 }, 3357 { 3358 "fragmentContext": null, 3359 "description": "<template><object></template><body><span>Foo", 3360 "input": "<template><object></template><body><span>Foo", 3361 "output": [ 3362 [ 3363 "StartTag", 3364 "template", 3365 {} 3366 ], 3367 [ 3368 "StartTag", 3369 "object", 3370 {} 3371 ], 3372 [ 3373 "EndTag", 3374 "template" 3375 ], 3376 [ 3377 "StartTag", 3378 "body", 3379 {} 3380 ], 3381 [ 3382 "StartTag", 3383 "span", 3384 {} 3385 ], 3386 [ 3387 "Character", 3388 "Foo" 3389 ] 3390 ] 3391 }, 3392 { 3393 "fragmentContext": null, 3394 "description": "<template><svg><template>", 3395 "input": "<template><svg><template>", 3396 "output": [ 3397 [ 3398 "StartTag", 3399 "template", 3400 {} 3401 ], 3402 [ 3403 "StartTag", 3404 "svg", 3405 {} 3406 ], 3407 [ 3408 "StartTag", 3409 "template", 3410 {} 3411 ] 3412 ] 3413 }, 3414 { 3415 "fragmentContext": null, 3416 "description": "<template><svg><foo><template><foreignObject><div></template><div>", 3417 "input": "<template><svg><foo><template><foreignObject><div></template><div>", 3418 "output": [ 3419 [ 3420 "StartTag", 3421 "template", 3422 {} 3423 ], 3424 [ 3425 "StartTag", 3426 "svg", 3427 {} 3428 ], 3429 [ 3430 "StartTag", 3431 "foo", 3432 {} 3433 ], 3434 [ 3435 "StartTag", 3436 "template", 3437 {} 3438 ], 3439 [ 3440 "StartTag", 3441 "foreignObject", 3442 {} 3443 ], 3444 [ 3445 "StartTag", 3446 "div", 3447 {} 3448 ], 3449 [ 3450 "EndTag", 3451 "template" 3452 ], 3453 [ 3454 "StartTag", 3455 "div", 3456 {} 3457 ] 3458 ] 3459 }, 3460 { 3461 "fragmentContext": null, 3462 "description": "<dummy><template><span></dummy>", 3463 "input": "<dummy><template><span></dummy>", 3464 "output": [ 3465 [ 3466 "StartTag", 3467 "dummy", 3468 {} 3469 ], 3470 [ 3471 "StartTag", 3472 "template", 3473 {} 3474 ], 3475 [ 3476 "StartTag", 3477 "span", 3478 {} 3479 ], 3480 [ 3481 "EndTag", 3482 "dummy" 3483 ] 3484 ] 3485 }, 3486 { 3487 "fragmentContext": null, 3488 "description": "<body><table><tr><td><select><template>Foo</template><caption>A</table>", 3489 "input": "<body><table><tr><td><select><template>Foo</template><caption>A</table>", 3490 "output": [ 3491 [ 3492 "StartTag", 3493 "body", 3494 {} 3495 ], 3496 [ 3497 "StartTag", 3498 "table", 3499 {} 3500 ], 3501 [ 3502 "StartTag", 3503 "tr", 3504 {} 3505 ], 3506 [ 3507 "StartTag", 3508 "td", 3509 {} 3510 ], 3511 [ 3512 "StartTag", 3513 "select", 3514 {} 3515 ], 3516 [ 3517 "StartTag", 3518 "template", 3519 {} 3520 ], 3521 [ 3522 "Character", 3523 "Foo" 3524 ], 3525 [ 3526 "EndTag", 3527 "template" 3528 ], 3529 [ 3530 "StartTag", 3531 "caption", 3532 {} 3533 ], 3534 [ 3535 "Character", 3536 "A" 3537 ], 3538 [ 3539 "EndTag", 3540 "table" 3541 ] 3542 ] 3543 }, 3544 { 3545 "fragmentContext": null, 3546 "description": "<body></body><template>", 3547 "input": "<body></body><template>", 3548 "output": [ 3549 [ 3550 "StartTag", 3551 "body", 3552 {} 3553 ], 3554 [ 3555 "EndTag", 3556 "body" 3557 ], 3558 [ 3559 "StartTag", 3560 "template", 3561 {} 3562 ] 3563 ] 3564 }, 3565 { 3566 "fragmentContext": null, 3567 "description": "<head></head><template>", 3568 "input": "<head></head><template>", 3569 "output": [ 3570 [ 3571 "StartTag", 3572 "head", 3573 {} 3574 ], 3575 [ 3576 "EndTag", 3577 "head" 3578 ], 3579 [ 3580 "StartTag", 3581 "template", 3582 {} 3583 ] 3584 ] 3585 }, 3586 { 3587 "fragmentContext": null, 3588 "description": "<head></head><template>Foo</template>", 3589 "input": "<head></head><template>Foo</template>", 3590 "output": [ 3591 [ 3592 "StartTag", 3593 "head", 3594 {} 3595 ], 3596 [ 3597 "EndTag", 3598 "head" 3599 ], 3600 [ 3601 "StartTag", 3602 "template", 3603 {} 3604 ], 3605 [ 3606 "Character", 3607 "Foo" 3608 ], 3609 [ 3610 "EndTag", 3611 "template" 3612 ] 3613 ] 3614 }, 3615 { 3616 "fragmentContext": null, 3617 "description": "<!DOCTYPE HTML><dummy><table><template><table><template><table><script>", 3618 "input": "<!DOCTYPE HTML><dummy><table><template><table><template><table><script>", 3619 "output": [ 3620 [ 3621 "DOCTYPE", 3622 "html", 3623 null, 3624 null, 3625 true 3626 ], 3627 [ 3628 "StartTag", 3629 "dummy", 3630 {} 3631 ], 3632 [ 3633 "StartTag", 3634 "table", 3635 {} 3636 ], 3637 [ 3638 "StartTag", 3639 "template", 3640 {} 3641 ], 3642 [ 3643 "StartTag", 3644 "table", 3645 {} 3646 ], 3647 [ 3648 "StartTag", 3649 "template", 3650 {} 3651 ], 3652 [ 3653 "StartTag", 3654 "table", 3655 {} 3656 ], 3657 [ 3658 "StartTag", 3659 "script", 3660 {} 3661 ] 3662 ] 3663 }, 3664 { 3665 "fragmentContext": null, 3666 "description": "<template><a><table><a>", 3667 "input": "<template><a><table><a>", 3668 "output": [ 3669 [ 3670 "StartTag", 3671 "template", 3672 {} 3673 ], 3674 [ 3675 "StartTag", 3676 "a", 3677 {} 3678 ], 3679 [ 3680 "StartTag", 3681 "table", 3682 {} 3683 ], 3684 [ 3685 "StartTag", 3686 "a", 3687 {} 3688 ] 3689 ] 3690 }, 3691 { 3692 "fragmentContext": "template", 3693 "description": "<template><form><input name=\"q\"></form><div>second</div></template>", 3694 "input": "<template><form><input name=\"q\"></form><div>second</div></template>", 3695 "output": [ 3696 [ 3697 "StartTag", 3698 "template", 3699 {} 3700 ], 3701 [ 3702 "StartTag", 3703 "form", 3704 {} 3705 ], 3706 [ 3707 "StartTag", 3708 "input", 3709 { 3710 "name": "q" 3711 } 3712 ], 3713 [ 3714 "EndTag", 3715 "form" 3716 ], 3717 [ 3718 "StartTag", 3719 "div", 3720 {} 3721 ], 3722 [ 3723 "Character", 3724 "second" 3725 ], 3726 [ 3727 "EndTag", 3728 "div" 3729 ], 3730 [ 3731 "EndTag", 3732 "template" 3733 ] 3734 ] 3735 } 3736 ] 3737}