From e2468d2e1d5c3deb1f89586b968168da7fca745a Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Fri, 5 Apr 2024 09:56:58 +0200 Subject: [PATCH 01/69] Add test cases from html5lib-tests tree-construction --- .../tree-construction/adoption01.dat | 354 +++ .../tree-construction/adoption02.dat | 39 + .../tree-construction/blocks.dat | 695 +++++ .../tree-construction/comments01.dat | 217 ++ .../tree-construction/doctype01.dat | 474 +++ .../tree-construction/domjs-unsafe.dat | Bin 0 -> 10356 bytes .../tree-construction/entities01.dat | 943 ++++++ .../tree-construction/entities02.dat | 309 ++ .../tree-construction/foreign-fragment.dat | 645 ++++ .../tree-construction/html5test-com.dat | 301 ++ .../tree-construction/inbody01.dat | 54 + .../tree-construction/isindex.dat | 49 + .../tree-construction/main-element.dat | 46 + .../html5lib-tests/tree-construction/math.dat | 104 + .../tree-construction/menuitem-element.dat | 240 ++ .../namespace-sensitivity.dat | 22 + .../tree-construction/noscript01.dat | 237 ++ ...pending-spec-changes-plain-text-unsafe.dat | Bin 0 -> 927 bytes .../pending-spec-changes.dat | 46 + .../tree-construction/plain-text-unsafe.dat | Bin 0 -> 9486 bytes .../tree-construction/quirks01.dat | 53 + .../html5lib-tests/tree-construction/ruby.dat | 302 ++ .../tree-construction/scriptdata01.dat | 372 +++ .../tree-construction/search-element.dat | 46 + .../html5lib-tests/tree-construction/svg.dat | 104 + .../tree-construction/tables01.dat | 322 ++ .../tree-construction/template.dat | 1673 +++++++++++ .../tree-construction/tests1.dat | 1956 +++++++++++++ .../tree-construction/tests10.dat | 849 ++++++ .../tree-construction/tests11.dat | 523 ++++ .../tree-construction/tests12.dat | 62 + .../tree-construction/tests14.dat | 75 + .../tree-construction/tests15.dat | 216 ++ .../tree-construction/tests16.dat | 2602 +++++++++++++++++ .../tree-construction/tests17.dat | 179 ++ .../tree-construction/tests18.dat | 558 ++++ .../tree-construction/tests19.dat | 1398 +++++++++ .../tree-construction/tests2.dat | 831 ++++++ .../tree-construction/tests20.dat | 842 ++++++ .../tree-construction/tests21.dat | 306 ++ .../tree-construction/tests22.dat | 190 ++ .../tree-construction/tests23.dat | 168 ++ .../tree-construction/tests24.dat | 79 + .../tree-construction/tests25.dat | 288 ++ .../tree-construction/tests26.dat | 453 +++ .../tree-construction/tests3.dat | 305 ++ .../tree-construction/tests4.dat | 74 + .../tree-construction/tests5.dat | 210 ++ .../tree-construction/tests6.dat | 663 +++++ .../tree-construction/tests7.dat | 453 +++ .../tree-construction/tests8.dat | 165 ++ .../tree-construction/tests9.dat | 472 +++ .../tree-construction/tests_innerHTML_1.dat | 843 ++++++ .../tree-construction/tricky01.dat | 336 +++ .../tree-construction/webkit01.dat | 785 +++++ .../tree-construction/webkit02.dat | 554 ++++ 56 files changed, 24082 insertions(+) create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/adoption01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/adoption02.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/blocks.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/comments01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/doctype01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/domjs-unsafe.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/entities01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/entities02.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/foreign-fragment.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/html5test-com.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/inbody01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/isindex.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/main-element.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/math.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/menuitem-element.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/namespace-sensitivity.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/noscript01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/pending-spec-changes-plain-text-unsafe.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/pending-spec-changes.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/plain-text-unsafe.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/quirks01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/ruby.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/scriptdata01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/search-element.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/svg.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tables01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/template.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests1.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests10.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests11.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests12.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests14.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests15.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests16.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests17.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests18.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests19.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests2.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests20.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests21.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests22.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests23.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests24.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests25.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests26.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests3.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests4.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests5.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests6.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests7.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests8.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests9.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tests_innerHTML_1.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/tricky01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/webkit01.dat create mode 100644 tests/phpunit/tests/html-api/html5lib-tests/tree-construction/webkit02.dat diff --git a/tests/phpunit/tests/html-api/html5lib-tests/tree-construction/adoption01.dat b/tests/phpunit/tests/html-api/html5lib-tests/tree-construction/adoption01.dat new file mode 100644 index 0000000000000..38f98efded0ae --- /dev/null +++ b/tests/phpunit/tests/html-api/html5lib-tests/tree-construction/adoption01.dat @@ -0,0 +1,354 @@ +#data +

+#errors +(1,3): expected-doctype-but-got-start-tag +(1,10): adoption-agency-1.3 +#document +| +| +| +| +|

+| + +#data +1

23

+#errors +(1,3): expected-doctype-but-got-start-tag +(1,12): adoption-agency-1.3 +#document +| +| +| +| +| "1" +|

+| +| "2" +| "3" + +#data +1 +#errors +(1,3): expected-doctype-but-got-start-tag +(1,17): adoption-agency-1.3 +#document +| +| +| +| +| "1" +|