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