gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/html/testdata/webkit/tests2.dat (about) 1 #data 2 <!DOCTYPE html>Test 3 #errors 4 #document 5 | <!DOCTYPE html> 6 | <html> 7 | <head> 8 | <body> 9 | "Test" 10 11 #data 12 <textarea>test</div>test 13 #errors 14 (1,10): expected-doctype-but-got-start-tag 15 (1,24): expected-closing-tag-but-got-eof 16 #document 17 | <html> 18 | <head> 19 | <body> 20 | <textarea> 21 | "test</div>test" 22 23 #data 24 <table><td> 25 #errors 26 (1,7): expected-doctype-but-got-start-tag 27 (1,11): unexpected-cell-in-table-body 28 (1,11): expected-closing-tag-but-got-eof 29 #document 30 | <html> 31 | <head> 32 | <body> 33 | <table> 34 | <tbody> 35 | <tr> 36 | <td> 37 38 #data 39 <table><td>test</tbody></table> 40 #errors 41 (1,7): expected-doctype-but-got-start-tag 42 (1,11): unexpected-cell-in-table-body 43 #document 44 | <html> 45 | <head> 46 | <body> 47 | <table> 48 | <tbody> 49 | <tr> 50 | <td> 51 | "test" 52 53 #data 54 <frame>test 55 #errors 56 (1,7): expected-doctype-but-got-start-tag 57 (1,7): unexpected-start-tag-ignored 58 #document 59 | <html> 60 | <head> 61 | <body> 62 | "test" 63 64 #data 65 <!DOCTYPE html><frameset>test 66 #errors 67 (1,29): unexpected-char-in-frameset 68 (1,29): unexpected-char-in-frameset 69 (1,29): unexpected-char-in-frameset 70 (1,29): unexpected-char-in-frameset 71 (1,29): eof-in-frameset 72 #document 73 | <!DOCTYPE html> 74 | <html> 75 | <head> 76 | <frameset> 77 78 #data 79 <!DOCTYPE html><frameset> te st 80 #errors 81 (1,29): unexpected-char-in-frameset 82 (1,29): unexpected-char-in-frameset 83 (1,29): unexpected-char-in-frameset 84 (1,29): unexpected-char-in-frameset 85 (1,29): eof-in-frameset 86 #document 87 | <!DOCTYPE html> 88 | <html> 89 | <head> 90 | <frameset> 91 | " " 92 93 #data 94 <!DOCTYPE html><frameset></frameset> te st 95 #errors 96 (1,29): unexpected-char-after-frameset 97 (1,29): unexpected-char-after-frameset 98 (1,29): unexpected-char-after-frameset 99 (1,29): unexpected-char-after-frameset 100 #document 101 | <!DOCTYPE html> 102 | <html> 103 | <head> 104 | <frameset> 105 | " " 106 107 #data 108 <!DOCTYPE html><frameset><!DOCTYPE html> 109 #errors 110 (1,40): unexpected-doctype 111 (1,40): eof-in-frameset 112 #document 113 | <!DOCTYPE html> 114 | <html> 115 | <head> 116 | <frameset> 117 118 #data 119 <!DOCTYPE html><font><p><b>test</font> 120 #errors 121 (1,38): adoption-agency-1.3 122 (1,38): adoption-agency-1.3 123 #document 124 | <!DOCTYPE html> 125 | <html> 126 | <head> 127 | <body> 128 | <font> 129 | <p> 130 | <font> 131 | <b> 132 | "test" 133 134 #data 135 <!DOCTYPE html><dt><div><dd> 136 #errors 137 (1,28): end-tag-too-early 138 #document 139 | <!DOCTYPE html> 140 | <html> 141 | <head> 142 | <body> 143 | <dt> 144 | <div> 145 | <dd> 146 147 #data 148 <script></x 149 #errors 150 (1,8): expected-doctype-but-got-start-tag 151 (1,11): expected-named-closing-tag-but-got-eof 152 #document 153 | <html> 154 | <head> 155 | <script> 156 | "</x" 157 | <body> 158 159 #data 160 <table><plaintext><td> 161 #errors 162 (1,7): expected-doctype-but-got-start-tag 163 (1,18): unexpected-start-tag-implies-table-voodoo 164 (1,22): foster-parenting-character-in-table 165 (1,22): foster-parenting-character-in-table 166 (1,22): foster-parenting-character-in-table 167 (1,22): foster-parenting-character-in-table 168 (1,22): eof-in-table 169 #document 170 | <html> 171 | <head> 172 | <body> 173 | <plaintext> 174 | "<td>" 175 | <table> 176 177 #data 178 <plaintext></plaintext> 179 #errors 180 (1,11): expected-doctype-but-got-start-tag 181 (1,23): expected-closing-tag-but-got-eof 182 #document 183 | <html> 184 | <head> 185 | <body> 186 | <plaintext> 187 | "</plaintext>" 188 189 #data 190 <!DOCTYPE html><table><tr>TEST 191 #errors 192 (1,30): foster-parenting-character-in-table 193 (1,30): foster-parenting-character-in-table 194 (1,30): foster-parenting-character-in-table 195 (1,30): foster-parenting-character-in-table 196 (1,30): eof-in-table 197 #document 198 | <!DOCTYPE html> 199 | <html> 200 | <head> 201 | <body> 202 | "TEST" 203 | <table> 204 | <tbody> 205 | <tr> 206 207 #data 208 <!DOCTYPE html><body t1=1><body t2=2><body t3=3 t4=4> 209 #errors 210 (1,37): unexpected-start-tag 211 (1,53): unexpected-start-tag 212 #document 213 | <!DOCTYPE html> 214 | <html> 215 | <head> 216 | <body> 217 | t1="1" 218 | t2="2" 219 | t3="3" 220 | t4="4" 221 222 #data 223 </b test 224 #errors 225 (1,8): eof-in-attribute-name 226 (1,8): expected-doctype-but-got-eof 227 #new-errors 228 (1:9) eof-in-tag 229 #document 230 | <html> 231 | <head> 232 | <body> 233 234 #data 235 <!DOCTYPE html></b test<b &=&>X 236 #errors 237 (1,24): invalid-character-in-attribute-name 238 (1,32): named-entity-without-semicolon 239 (1,33): attributes-in-end-tag 240 (1,33): unexpected-end-tag-before-html 241 #new-errors 242 (1:24) unexpected-character-in-attribute-name 243 (1:33) missing-semicolon-after-character-reference 244 (1:33) end-tag-with-attributes 245 #document 246 | <!DOCTYPE html> 247 | <html> 248 | <head> 249 | <body> 250 | "X" 251 252 #data 253 <!doctypehtml><scrIPt type=text/x-foobar;baz>X</SCRipt 254 #errors 255 (1,9): need-space-after-doctype 256 (1,54): expected-named-closing-tag-but-got-eof 257 #new-errors 258 (1:10) missing-whitespace-before-doctype-name 259 #document 260 | <!DOCTYPE html> 261 | <html> 262 | <head> 263 | <script> 264 | type="text/x-foobar;baz" 265 | "X</SCRipt" 266 | <body> 267 268 #data 269 & 270 #errors 271 (1,1): expected-doctype-but-got-chars 272 #document 273 | <html> 274 | <head> 275 | <body> 276 | "&" 277 278 #data 279 &# 280 #errors 281 (1,2): expected-numeric-entity 282 (1,2): expected-doctype-but-got-chars 283 #new-errors 284 (1:3) absence-of-digits-in-numeric-character-reference 285 #document 286 | <html> 287 | <head> 288 | <body> 289 | "&#" 290 291 #data 292 &#X 293 #errors 294 (1,3): expected-numeric-entity 295 (1,3): expected-doctype-but-got-chars 296 #new-errors 297 (1:4) absence-of-digits-in-numeric-character-reference 298 #document 299 | <html> 300 | <head> 301 | <body> 302 | "&#X" 303 304 #data 305 &#x 306 #errors 307 (1,3): expected-numeric-entity 308 (1,3): expected-doctype-but-got-chars 309 #new-errors 310 (1:4) absence-of-digits-in-numeric-character-reference 311 #document 312 | <html> 313 | <head> 314 | <body> 315 | "&#x" 316 317 #data 318 - 319 #errors 320 (1,4): numeric-entity-without-semicolon 321 (1,4): expected-doctype-but-got-chars 322 #new-errors 323 (1:5) missing-semicolon-after-character-reference 324 #document 325 | <html> 326 | <head> 327 | <body> 328 | "-" 329 330 #data 331 &x-test 332 #errors 333 (1,2): expected-doctype-but-got-chars 334 #document 335 | <html> 336 | <head> 337 | <body> 338 | "&x-test" 339 340 #data 341 <!doctypehtml><p><li> 342 #errors 343 (1,9): need-space-after-doctype 344 #new-errors 345 (1:10) missing-whitespace-before-doctype-name 346 #document 347 | <!DOCTYPE html> 348 | <html> 349 | <head> 350 | <body> 351 | <p> 352 | <li> 353 354 #data 355 <!doctypehtml><p><dt> 356 #errors 357 (1,9): need-space-after-doctype 358 #new-errors 359 (1:10) missing-whitespace-before-doctype-name 360 #document 361 | <!DOCTYPE html> 362 | <html> 363 | <head> 364 | <body> 365 | <p> 366 | <dt> 367 368 #data 369 <!doctypehtml><p><dd> 370 #errors 371 (1,9): need-space-after-doctype 372 #new-errors 373 (1:10) missing-whitespace-before-doctype-name 374 #document 375 | <!DOCTYPE html> 376 | <html> 377 | <head> 378 | <body> 379 | <p> 380 | <dd> 381 382 #data 383 <!doctypehtml><p><form> 384 #errors 385 (1,9): need-space-after-doctype 386 (1,23): expected-closing-tag-but-got-eof 387 #new-errors 388 (1:10) missing-whitespace-before-doctype-name 389 #document 390 | <!DOCTYPE html> 391 | <html> 392 | <head> 393 | <body> 394 | <p> 395 | <form> 396 397 #data 398 <!DOCTYPE html><p></P>X 399 #errors 400 #document 401 | <!DOCTYPE html> 402 | <html> 403 | <head> 404 | <body> 405 | <p> 406 | "X" 407 408 #data 409 & 410 #errors 411 (1,4): named-entity-without-semicolon 412 (1,4): expected-doctype-but-got-chars 413 #new-errors 414 (1:5) missing-semicolon-after-character-reference 415 #document 416 | <html> 417 | <head> 418 | <body> 419 | "&" 420 421 #data 422 &AMp; 423 #errors 424 (1,3): expected-named-entity 425 (1,3): expected-doctype-but-got-chars 426 #new-errors 427 (1:5) unknown-named-character-reference 428 #document 429 | <html> 430 | <head> 431 | <body> 432 | "&AMp;" 433 434 #data 435 <!DOCTYPE html><html><head></head><body><thisISasillyTESTelementNameToMakeSureCrazyTagNamesArePARSEDcorrectLY> 436 #errors 437 (1,110): expected-closing-tag-but-got-eof 438 #document 439 | <!DOCTYPE html> 440 | <html> 441 | <head> 442 | <body> 443 | <thisisasillytestelementnametomakesurecrazytagnamesareparsedcorrectly> 444 445 #data 446 <!DOCTYPE html>X</body>X 447 #errors 448 (1,24): unexpected-char-after-body 449 #document 450 | <!DOCTYPE html> 451 | <html> 452 | <head> 453 | <body> 454 | "XX" 455 456 #data 457 <!DOCTYPE html><!-- X 458 #errors 459 (1,21): eof-in-comment 460 #new-errors 461 (1:22) eof-in-comment 462 #document 463 | <!DOCTYPE html> 464 | <!-- X --> 465 | <html> 466 | <head> 467 | <body> 468 469 #data 470 <!DOCTYPE html><table><caption>test TEST</caption><td>test 471 #errors 472 (1,54): unexpected-cell-in-table-body 473 (1,58): expected-closing-tag-but-got-eof 474 #document 475 | <!DOCTYPE html> 476 | <html> 477 | <head> 478 | <body> 479 | <table> 480 | <caption> 481 | "test TEST" 482 | <tbody> 483 | <tr> 484 | <td> 485 | "test" 486 487 #data 488 <!DOCTYPE html><select><option><optgroup> 489 #errors 490 (1,41): eof-in-select 491 #document 492 | <!DOCTYPE html> 493 | <html> 494 | <head> 495 | <body> 496 | <select> 497 | <option> 498 | <optgroup> 499 500 #data 501 <!DOCTYPE html><select><optgroup><option></optgroup><option><select><option> 502 #errors 503 (1,68): unexpected-select-in-select 504 #document 505 | <!DOCTYPE html> 506 | <html> 507 | <head> 508 | <body> 509 | <select> 510 | <optgroup> 511 | <option> 512 | <option> 513 | <option> 514 515 #data 516 <!DOCTYPE html><select><optgroup><option><optgroup> 517 #errors 518 (1,51): eof-in-select 519 #document 520 | <!DOCTYPE html> 521 | <html> 522 | <head> 523 | <body> 524 | <select> 525 | <optgroup> 526 | <option> 527 | <optgroup> 528 529 #data 530 <!DOCTYPE html><datalist><option>foo</datalist>bar 531 #errors 532 #document 533 | <!DOCTYPE html> 534 | <html> 535 | <head> 536 | <body> 537 | <datalist> 538 | <option> 539 | "foo" 540 | "bar" 541 542 #data 543 <!DOCTYPE html><font><input><input></font> 544 #errors 545 #document 546 | <!DOCTYPE html> 547 | <html> 548 | <head> 549 | <body> 550 | <font> 551 | <input> 552 | <input> 553 554 #data 555 <!DOCTYPE html><!-- XXX - XXX --> 556 #errors 557 #document 558 | <!DOCTYPE html> 559 | <!-- XXX - XXX --> 560 | <html> 561 | <head> 562 | <body> 563 564 #data 565 <!DOCTYPE html><!-- XXX - XXX 566 #errors 567 (1,29): eof-in-comment 568 #new-errors 569 (1:30) eof-in-comment 570 #document 571 | <!DOCTYPE html> 572 | <!-- XXX - XXX --> 573 | <html> 574 | <head> 575 | <body> 576 577 #data 578 <!DOCTYPE html><!-- XXX - XXX - XXX --> 579 #errors 580 #document 581 | <!DOCTYPE html> 582 | <!-- XXX - XXX - XXX --> 583 | <html> 584 | <head> 585 | <body> 586 587 #data 588 test 589 test 590 #errors 591 (2,4): expected-doctype-but-got-chars 592 #document 593 | <html> 594 | <head> 595 | <body> 596 | "test 597 test" 598 599 #data 600 <!DOCTYPE html><body><title>test</body></title> 601 #errors 602 #document 603 | <!DOCTYPE html> 604 | <html> 605 | <head> 606 | <body> 607 | <title> 608 | "test</body>" 609 610 #data 611 <!DOCTYPE html><body><title>X</title><meta name=z><link rel=foo><style> 612 x { content:"</style" } </style> 613 #errors 614 #document 615 | <!DOCTYPE html> 616 | <html> 617 | <head> 618 | <body> 619 | <title> 620 | "X" 621 | <meta> 622 | name="z" 623 | <link> 624 | rel="foo" 625 | <style> 626 | " 627 x { content:"</style" } " 628 629 #data 630 <!DOCTYPE html><select><optgroup></optgroup></select> 631 #errors 632 #document 633 | <!DOCTYPE html> 634 | <html> 635 | <head> 636 | <body> 637 | <select> 638 | <optgroup> 639 640 #data 641 642 643 #errors 644 (2,1): expected-doctype-but-got-eof 645 #document 646 | <html> 647 | <head> 648 | <body> 649 650 #data 651 <!DOCTYPE html> <html> 652 #errors 653 #document 654 | <!DOCTYPE html> 655 | <html> 656 | <head> 657 | <body> 658 659 #data 660 <!DOCTYPE html><script> 661 </script> <title>x</title> </head> 662 #errors 663 #document 664 | <!DOCTYPE html> 665 | <html> 666 | <head> 667 | <script> 668 | " 669 " 670 | " " 671 | <title> 672 | "x" 673 | " " 674 | <body> 675 676 #data 677 <!DOCTYPE html><html><body><html id=x> 678 #errors 679 (1,38): non-html-root 680 #document 681 | <!DOCTYPE html> 682 | <html> 683 | id="x" 684 | <head> 685 | <body> 686 687 #data 688 <!DOCTYPE html>X</body><html id="x"> 689 #errors 690 (1,36): non-html-root 691 #document 692 | <!DOCTYPE html> 693 | <html> 694 | id="x" 695 | <head> 696 | <body> 697 | "X" 698 699 #data 700 <!DOCTYPE html><head><html id=x> 701 #errors 702 (1,32): non-html-root 703 #document 704 | <!DOCTYPE html> 705 | <html> 706 | id="x" 707 | <head> 708 | <body> 709 710 #data 711 <!DOCTYPE html>X</html>X 712 #errors 713 (1,24): expected-eof-but-got-char 714 #document 715 | <!DOCTYPE html> 716 | <html> 717 | <head> 718 | <body> 719 | "XX" 720 721 #data 722 <!DOCTYPE html>X</html> 723 #errors 724 #document 725 | <!DOCTYPE html> 726 | <html> 727 | <head> 728 | <body> 729 | "X " 730 731 #data 732 <!DOCTYPE html>X</html><p>X 733 #errors 734 (1,26): expected-eof-but-got-start-tag 735 #document 736 | <!DOCTYPE html> 737 | <html> 738 | <head> 739 | <body> 740 | "X" 741 | <p> 742 | "X" 743 744 #data 745 <!DOCTYPE html>X<p/x/y/z> 746 #errors 747 (1,19): unexpected-character-after-solidus-in-tag 748 (1,21): unexpected-character-after-solidus-in-tag 749 (1,23): unexpected-character-after-solidus-in-tag 750 #new-errors 751 (1:20) unexpected-solidus-in-tag 752 (1:22) unexpected-solidus-in-tag 753 (1:24) unexpected-solidus-in-tag 754 #document 755 | <!DOCTYPE html> 756 | <html> 757 | <head> 758 | <body> 759 | "X" 760 | <p> 761 | x="" 762 | y="" 763 | z="" 764 765 #data 766 <!DOCTYPE html><!--x-- 767 #errors 768 (1,22): eof-in-comment-double-dash 769 #new-errors 770 (1:23) eof-in-comment 771 #document 772 | <!DOCTYPE html> 773 | <!-- x --> 774 | <html> 775 | <head> 776 | <body> 777 778 #data 779 <!DOCTYPE html><table><tr><td></p></table> 780 #errors 781 (1,34): unexpected-end-tag 782 #document 783 | <!DOCTYPE html> 784 | <html> 785 | <head> 786 | <body> 787 | <table> 788 | <tbody> 789 | <tr> 790 | <td> 791 | <p> 792 793 #data 794 <!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->--> 795 #errors 796 (1,20): expected-space-or-right-bracket-in-doctype 797 (1,25): unknown-doctype 798 (1,35): unexpected-char-in-comment 799 #new-errors 800 (1:21) invalid-character-sequence-after-doctype-name 801 (1:35) nested-comment 802 #document 803 | <!DOCTYPE <!doctype> 804 | <html> 805 | <head> 806 | <body> 807 | ">" 808 | <!-- <!--x --> 809 | "-->" 810 811 #data 812 <!doctype html><div><form></form><div></div></div> 813 #errors 814 #document 815 | <!DOCTYPE html> 816 | <html> 817 | <head> 818 | <body> 819 | <div> 820 | <form> 821 | <div>