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