From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../web-platform/tests/tools/html5lib/.gitignore | 20 + .../web-platform/tests/tools/html5lib/.gitmodules | 3 + .../web-platform/tests/tools/html5lib/.travis.yml | 37 + .../web-platform/tests/tools/html5lib/AUTHORS.rst | 34 + .../web-platform/tests/tools/html5lib/CHANGES.rst | 171 + .../tests/tools/html5lib/CONTRIBUTING.rst | 60 + testing/web-platform/tests/tools/html5lib/LICENSE | 20 + .../web-platform/tests/tools/html5lib/MANIFEST.in | 6 + .../web-platform/tests/tools/html5lib/README.rst | 157 + .../tests/tools/html5lib/debug-info.py | 37 + .../web-platform/tests/tools/html5lib/doc/Makefile | 177 + .../tests/tools/html5lib/doc/changes.rst | 3 + .../web-platform/tests/tools/html5lib/doc/conf.py | 280 + .../tests/tools/html5lib/doc/html5lib.filters.rst | 59 + .../tests/tools/html5lib/doc/html5lib.rst | 77 + .../tools/html5lib/doc/html5lib.serializer.rst | 19 + .../tools/html5lib/doc/html5lib.treebuilders.rst | 43 + .../tools/html5lib/doc/html5lib.treewalkers.rst | 59 + .../tests/tools/html5lib/doc/index.rst | 21 + .../tests/tools/html5lib/doc/license.rst | 4 + .../web-platform/tests/tools/html5lib/doc/make.bat | 242 + .../tests/tools/html5lib/doc/modules.rst | 7 + .../tests/tools/html5lib/doc/movingparts.rst | 209 + .../tests/tools/html5lib/flake8-run.sh | 14 + .../tests/tools/html5lib/html5lib/__init__.py | 23 + .../tests/tools/html5lib/html5lib/constants.py | 3104 ++ .../tools/html5lib/html5lib/filters/__init__.py | 0 .../tests/tools/html5lib/html5lib/filters/_base.py | 12 + .../html5lib/filters/alphabeticalattributes.py | 20 + .../html5lib/filters/inject_meta_charset.py | 65 + .../tests/tools/html5lib/html5lib/filters/lint.py | 93 + .../html5lib/html5lib/filters/optionaltags.py | 205 + .../tools/html5lib/html5lib/filters/sanitizer.py | 12 + .../tools/html5lib/html5lib/filters/whitespace.py | 38 + .../tests/tools/html5lib/html5lib/html5parser.py | 2723 ++ .../tests/tools/html5lib/html5lib/ihatexml.py | 285 + .../tests/tools/html5lib/html5lib/inputstream.py | 886 + .../tests/tools/html5lib/html5lib/sanitizer.py | 271 + .../tools/html5lib/html5lib/serializer/__init__.py | 16 + .../html5lib/html5lib/serializer/htmlserializer.py | 320 + .../tests/tools/html5lib/html5lib/tests/README | 1 + .../tools/html5lib/html5lib/tests/__init__.py | 1 + .../tools/html5lib/html5lib/tests/mockParser.py | 41 + .../html5lib/tests/performance/concatenation.py | 36 + .../tests/tools/html5lib/html5lib/tests/support.py | 177 + .../tools/html5lib/html5lib/tests/test_encoding.py | 67 + .../tools/html5lib/html5lib/tests/test_parser.py | 96 + .../tools/html5lib/html5lib/tests/test_parser2.py | 64 + .../html5lib/html5lib/tests/test_sanitizer.py | 105 + .../html5lib/html5lib/tests/test_serializer.py | 178 + .../tools/html5lib/html5lib/tests/test_stream.py | 183 + .../html5lib/html5lib/tests/test_tokenizer.py | 188 + .../html5lib/html5lib/tests/test_treeadapters.py | 40 + .../html5lib/html5lib/tests/test_treewalkers.py | 353 + .../html5lib/tests/test_whitespace_filter.py | 133 + .../html5lib/html5lib/tests/testdata/AUTHORS.rst | 34 + .../tools/html5lib/html5lib/tests/testdata/LICENSE | 21 + .../tests/testdata/encoding/chardet/test_big5.txt | 51 + .../tests/testdata/encoding/test-yahoo-jp.dat | 10 + .../html5lib/tests/testdata/encoding/tests1.dat | 394 + .../html5lib/tests/testdata/encoding/tests2.dat | 115 + .../html5lib/tests/testdata/sanitizer/tests1.dat | 501 + .../html5lib/tests/testdata/serializer/core.test | 125 + .../tests/testdata/serializer/injectmeta.test | 66 + .../tests/testdata/serializer/optionaltags.test | 965 + .../tests/testdata/serializer/options.test | 60 + .../tests/testdata/serializer/whitespace.test | 51 + .../tests/testdata/sniffer/htmlOrFeed.json | 43 + .../html5lib/tests/testdata/tokenizer/README.md | 104 + .../testdata/tokenizer/contentModelFlags.test | 81 + .../html5lib/tests/testdata/tokenizer/domjs.test | 96 + .../tests/testdata/tokenizer/entities.test | 283 + .../tests/testdata/tokenizer/escapeFlag.test | 33 + .../tests/testdata/tokenizer/namedEntities.test | 42210 +++++++++++++++++++ .../tests/testdata/tokenizer/numericEntities.test | 1313 + .../testdata/tokenizer/pendingSpecChanges.test | 7 + .../html5lib/tests/testdata/tokenizer/test1.test | 196 + .../html5lib/tests/testdata/tokenizer/test2.test | 179 + .../html5lib/tests/testdata/tokenizer/test3.test | 6047 +++ .../html5lib/tests/testdata/tokenizer/test4.test | 344 + .../tests/testdata/tokenizer/unicodeChars.test | 1295 + .../tokenizer/unicodeCharsProblematic.test | 27 + .../tests/testdata/tokenizer/xmlViolation.test | 22 + .../tests/testdata/tree-construction/README.md | 98 + .../testdata/tree-construction/adoption01.dat | 337 + .../testdata/tree-construction/adoption02.dat | 39 + .../testdata/tree-construction/comments01.dat | 178 + .../tests/testdata/tree-construction/doctype01.dat | 424 + .../testdata/tree-construction/domjs-unsafe.dat | Bin 0 -> 9884 bytes .../testdata/tree-construction/entities01.dat | 723 + .../testdata/tree-construction/entities02.dat | 283 + .../testdata/tree-construction/html5test-com.dat | 291 + .../tests/testdata/tree-construction/inbody01.dat | 54 + .../tests/testdata/tree-construction/isindex.dat | 47 + .../testdata/tree-construction/main-element.dat | 46 + .../pending-spec-changes-plain-text-unsafe.dat | Bin 0 -> 816 bytes .../tree-construction/pending-spec-changes.dat | 46 + .../tree-construction/plain-text-unsafe.dat | Bin 0 -> 7925 bytes .../tests/testdata/tree-construction/ruby.dat | 298 + .../testdata/tree-construction/scriptdata01.dat | 365 + .../tree-construction/scripted/adoption01.dat | 15 + .../testdata/tree-construction/scripted/ark.dat | 26 + .../tree-construction/scripted/webkit01.dat | 28 + .../tests/testdata/tree-construction/tables01.dat | 286 + .../tests/testdata/tree-construction/template.dat | 1591 + .../tests/testdata/tree-construction/tests1.dat | 1959 + .../tests/testdata/tree-construction/tests10.dat | 847 + .../tests/testdata/tree-construction/tests11.dat | 482 + .../tests/testdata/tree-construction/tests12.dat | 62 + .../tests/testdata/tree-construction/tests14.dat | 75 + .../tests/testdata/tree-construction/tests15.dat | 216 + .../tests/testdata/tree-construction/tests16.dat | 2458 ++ .../tests/testdata/tree-construction/tests17.dat | 179 + .../tests/testdata/tree-construction/tests18.dat | 322 + .../tests/testdata/tree-construction/tests19.dat | 1524 + .../tests/testdata/tree-construction/tests2.dat | 799 + .../tests/testdata/tree-construction/tests20.dat | 516 + .../tests/testdata/tree-construction/tests21.dat | 305 + .../tests/testdata/tree-construction/tests22.dat | 190 + .../tests/testdata/tree-construction/tests23.dat | 168 + .../tests/testdata/tree-construction/tests24.dat | 79 + .../tests/testdata/tree-construction/tests25.dat | 232 + .../tests/testdata/tree-construction/tests26.dat | 388 + .../tests/testdata/tree-construction/tests3.dat | 305 + .../tests/testdata/tree-construction/tests4.dat | 58 + .../tests/testdata/tree-construction/tests5.dat | 210 + .../tests/testdata/tree-construction/tests6.dat | 659 + .../tests/testdata/tree-construction/tests7.dat | 403 + .../tests/testdata/tree-construction/tests8.dat | 151 + .../tests/testdata/tree-construction/tests9.dat | 472 + .../tree-construction/tests_innerHTML_1.dat | 891 + .../tests/testdata/tree-construction/tricky01.dat | 336 + .../tests/testdata/tree-construction/webkit01.dat | 705 + .../tests/testdata/tree-construction/webkit02.dat | 134 + .../tests/testdata/validator/attributes.test | 1035 + .../testdata/validator/base-href-attribute.test | 787 + .../testdata/validator/base-target-attribute.test | 35 + .../validator/blockquote-cite-attribute.test | 7 + .../tests/testdata/validator/classattribute.test | 152 + .../validator/contenteditableattribute.test | 59 + .../testdata/validator/contextmenuattribute.test | 115 + .../tests/testdata/validator/dirattribute.test | 59 + .../testdata/validator/draggableattribute.test | 63 + .../testdata/validator/html-xmlns-attribute.test | 23 + .../tests/testdata/validator/idattribute.test | 115 + .../tests/testdata/validator/inputattributes.test | 2795 ++ .../testdata/validator/irrelevantattribute.test | 63 + .../tests/testdata/validator/langattribute.test | 5579 +++ .../testdata/validator/li-value-attribute.test | 7 + .../testdata/validator/link-href-attribute.test | 7 + .../validator/link-hreflang-attribute.test | 7 + .../testdata/validator/link-rel-attribute.test | 271 + .../testdata/validator/ol-start-attribute.test | 7 + .../tests/testdata/validator/starttags.test | 375 + .../testdata/validator/style-scoped-attribute.test | 7 + .../testdata/validator/tabindexattribute.test | 79 + .../html5lib/html5lib/tests/tokenizertotree.py | 68 + .../tools/html5lib/html5lib/tests/us-ascii.html | 3 + .../tools/html5lib/html5lib/tests/utf-8-bom.html | 3 + .../tests/tools/html5lib/html5lib/tokenizer.py | 1731 + .../html5lib/html5lib/treeadapters/__init__.py | 0 .../tools/html5lib/html5lib/treeadapters/sax.py | 44 + .../html5lib/html5lib/treebuilders/__init__.py | 76 + .../tools/html5lib/html5lib/treebuilders/_base.py | 377 + .../tools/html5lib/html5lib/treebuilders/dom.py | 227 + .../tools/html5lib/html5lib/treebuilders/etree.py | 337 + .../html5lib/html5lib/treebuilders/etree_lxml.py | 369 + .../html5lib/html5lib/treewalkers/__init__.py | 57 + .../tools/html5lib/html5lib/treewalkers/_base.py | 200 + .../tools/html5lib/html5lib/treewalkers/dom.py | 46 + .../tools/html5lib/html5lib/treewalkers/etree.py | 138 + .../html5lib/html5lib/treewalkers/genshistream.py | 69 + .../html5lib/html5lib/treewalkers/lxmletree.py | 204 + .../tools/html5lib/html5lib/treewalkers/pulldom.py | 63 + .../tests/tools/html5lib/html5lib/trie/__init__.py | 12 + .../tests/tools/html5lib/html5lib/trie/_base.py | 37 + .../tests/tools/html5lib/html5lib/trie/datrie.py | 44 + .../tests/tools/html5lib/html5lib/trie/py.py | 67 + .../tests/tools/html5lib/html5lib/utils.py | 82 + testing/web-platform/tests/tools/html5lib/parse.py | 233 + .../tests/tools/html5lib/requirements-install.sh | 16 + .../tools/html5lib/requirements-optional-2.6.txt | 5 + .../html5lib/requirements-optional-cpython.txt | 5 + .../tests/tools/html5lib/requirements-optional.txt | 13 + .../tests/tools/html5lib/requirements-test.txt | 5 + .../tests/tools/html5lib/requirements.txt | 1 + testing/web-platform/tests/tools/html5lib/setup.py | 44 + testing/web-platform/tests/tools/html5lib/tox.ini | 30 + .../tests/tools/html5lib/utils/entities.py | 88 + .../tests/tools/html5lib/utils/iana_parse.py | 24 + .../tests/tools/html5lib/utils/spider.py | 122 + 191 files changed, 102955 insertions(+) create mode 100644 testing/web-platform/tests/tools/html5lib/.gitignore create mode 100644 testing/web-platform/tests/tools/html5lib/.gitmodules create mode 100644 testing/web-platform/tests/tools/html5lib/.travis.yml create mode 100644 testing/web-platform/tests/tools/html5lib/AUTHORS.rst create mode 100644 testing/web-platform/tests/tools/html5lib/CHANGES.rst create mode 100644 testing/web-platform/tests/tools/html5lib/CONTRIBUTING.rst create mode 100644 testing/web-platform/tests/tools/html5lib/LICENSE create mode 100644 testing/web-platform/tests/tools/html5lib/MANIFEST.in create mode 100644 testing/web-platform/tests/tools/html5lib/README.rst create mode 100644 testing/web-platform/tests/tools/html5lib/debug-info.py create mode 100644 testing/web-platform/tests/tools/html5lib/doc/Makefile create mode 100644 testing/web-platform/tests/tools/html5lib/doc/changes.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/conf.py create mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.filters.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.serializer.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.treebuilders.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/html5lib.treewalkers.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/index.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/license.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/make.bat create mode 100644 testing/web-platform/tests/tools/html5lib/doc/modules.rst create mode 100644 testing/web-platform/tests/tools/html5lib/doc/movingparts.rst create mode 100755 testing/web-platform/tests/tools/html5lib/flake8-run.sh create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/constants.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/_base.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/alphabeticalattributes.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/inject_meta_charset.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/lint.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/optionaltags.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/sanitizer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/filters/whitespace.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/html5parser.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/ihatexml.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/inputstream.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/sanitizer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/serializer/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/serializer/htmlserializer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/README create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/mockParser.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/performance/concatenation.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/support.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_encoding.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_parser.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_parser2.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_sanitizer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_serializer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_stream.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_tokenizer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_treeadapters.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_treewalkers.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/test_whitespace_filter.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/AUTHORS.rst create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/LICENSE create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/encoding/chardet/test_big5.txt create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/encoding/test-yahoo-jp.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/encoding/tests1.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/encoding/tests2.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/sanitizer/tests1.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/serializer/core.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/serializer/injectmeta.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/serializer/optionaltags.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/serializer/options.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/serializer/whitespace.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/sniffer/htmlOrFeed.json create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/README.md create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/contentModelFlags.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/domjs.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/entities.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/escapeFlag.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/namedEntities.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/numericEntities.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/pendingSpecChanges.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/test1.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/test2.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/test3.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/test4.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/unicodeChars.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/unicodeCharsProblematic.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tokenizer/xmlViolation.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/README.md create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/adoption01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/adoption02.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/comments01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/doctype01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/domjs-unsafe.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/entities01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/entities02.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/html5test-com.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/inbody01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/isindex.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/main-element.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/pending-spec-changes-plain-text-unsafe.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/pending-spec-changes.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/plain-text-unsafe.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/ruby.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/scriptdata01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/scripted/adoption01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/scripted/ark.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/scripted/webkit01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tables01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/template.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests1.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests10.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests11.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests12.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests14.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests15.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests16.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests17.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests18.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests19.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests2.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests20.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests21.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests22.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests23.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests24.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests25.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests26.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests3.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests4.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests5.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests6.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests7.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests8.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests9.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tests_innerHTML_1.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/tricky01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/webkit01.dat create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/tree-construction/webkit02.dat create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/attributes.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/base-href-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/base-target-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/blockquote-cite-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/classattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/contenteditableattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/contextmenuattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/dirattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/draggableattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/html-xmlns-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/idattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/inputattributes.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/irrelevantattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/langattribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/li-value-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/link-href-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/link-hreflang-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/link-rel-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/ol-start-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/starttags.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/style-scoped-attribute.test create mode 100755 testing/web-platform/tests/tools/html5lib/html5lib/tests/testdata/validator/tabindexattribute.test create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/tokenizertotree.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/us-ascii.html create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tests/utf-8-bom.html create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/tokenizer.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treeadapters/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treeadapters/sax.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treebuilders/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treebuilders/_base.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treebuilders/dom.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treebuilders/etree.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treebuilders/etree_lxml.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/_base.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/dom.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/etree.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/genshistream.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/lxmletree.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/treewalkers/pulldom.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/trie/__init__.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/trie/_base.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/trie/datrie.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/trie/py.py create mode 100644 testing/web-platform/tests/tools/html5lib/html5lib/utils.py create mode 100755 testing/web-platform/tests/tools/html5lib/parse.py create mode 100755 testing/web-platform/tests/tools/html5lib/requirements-install.sh create mode 100644 testing/web-platform/tests/tools/html5lib/requirements-optional-2.6.txt create mode 100644 testing/web-platform/tests/tools/html5lib/requirements-optional-cpython.txt create mode 100644 testing/web-platform/tests/tools/html5lib/requirements-optional.txt create mode 100644 testing/web-platform/tests/tools/html5lib/requirements-test.txt create mode 100644 testing/web-platform/tests/tools/html5lib/requirements.txt create mode 100644 testing/web-platform/tests/tools/html5lib/setup.py create mode 100644 testing/web-platform/tests/tools/html5lib/tox.ini create mode 100644 testing/web-platform/tests/tools/html5lib/utils/entities.py create mode 100644 testing/web-platform/tests/tools/html5lib/utils/iana_parse.py create mode 100644 testing/web-platform/tests/tools/html5lib/utils/spider.py (limited to 'testing/web-platform/tests/tools/html5lib') diff --git a/testing/web-platform/tests/tools/html5lib/.gitignore b/testing/web-platform/tests/tools/html5lib/.gitignore new file mode 100644 index 000000000..73d97fec0 --- /dev/null +++ b/testing/web-platform/tests/tools/html5lib/.gitignore @@ -0,0 +1,20 @@ +# Because we never want compiled Python +__pycache__/ +*.pyc + +# Ignore stuff produced by distutils +/build/ +/dist/ +/MANIFEST + +# Generated by parse.py -p +stats.prof + +# From cover (esp. in combination with nose) +.coverage + +# Because tox's data is inherently local +/.tox/ + +# We have no interest in built Sphinx files +/doc/_build diff --git a/testing/web-platform/tests/tools/html5lib/.gitmodules b/testing/web-platform/tests/tools/html5lib/.gitmodules new file mode 100644 index 000000000..dbca47032 --- /dev/null +++ b/testing/web-platform/tests/tools/html5lib/.gitmodules @@ -0,0 +1,3 @@ +[submodule "testdata"] + path = html5lib/tests/testdata + url = https://github.com/html5lib/html5lib-tests.git diff --git a/testing/web-platform/tests/tools/html5lib/.travis.yml b/testing/web-platform/tests/tools/html5lib/.travis.yml new file mode 100644 index 000000000..dd3130019 --- /dev/null +++ b/testing/web-platform/tests/tools/html5lib/.travis.yml @@ -0,0 +1,37 @@ +language: python +python: + - "2.6" + - "2.7" + - "3.2" + - "3.3" + - "3.4" + - "pypy" + +env: + - USE_OPTIONAL=true + - USE_OPTIONAL=false + +matrix: + exclude: + - python: "2.7" + env: USE_OPTIONAL=false + - python: "3.4" + env: USE_OPTIONAL=false + include: + - python: "2.7" + env: USE_OPTIONAL=false FLAKE=true + - python: "3.4" + env: USE_OPTIONAL=false FLAKE=true + +before_install: + - git submodule update --init --recursive + +install: + - bash requirements-install.sh + +script: + - nosetests + - bash flake8-run.sh + +after_script: + - python debug-info.py diff --git a/testing/web-platform/tests/tools/html5lib/AUTHORS.rst b/testing/web-platform/tests/tools/html5lib/AUTHORS.rst new file mode 100644 index 000000000..4148a6ed2 --- /dev/null +++ b/testing/web-platform/tests/tools/html5lib/AUTHORS.rst @@ -0,0 +1,34 @@ +Credits +======= + +``html5lib`` is written and maintained by: + +- James Graham +- Geoffrey Sneddon +- Łukasz Langa + + +Patches and suggestions +----------------------- +(In chronological order, by first commit:) + +- Anne van Kesteren +- Lachlan Hunt +- lantis63 +- Sam Ruby +- Tim Fletcher +- Thomas Broyer +- Mark Pilgrim +- Philip Taylor +- Ryan King +- Edward Z. Yang +- fantasai +- Philip Jägenstedt +- Ms2ger +- Andy Wingo +- Andreas Madsack +- Karim Valiev +- Mohammad Taha Jahangir +- Juan Carlos Garcia Segovia +- Mike West +- Marc DM diff --git a/testing/web-platform/tests/tools/html5lib/CHANGES.rst b/testing/web-platform/tests/tools/html5lib/CHANGES.rst new file mode 100644 index 000000000..1431b3c9b --- /dev/null +++ b/testing/web-platform/tests/tools/html5lib/CHANGES.rst @@ -0,0 +1,171 @@ +Change Log +---------- + +0.9999 +~~~~~~ + +Released on XXX, 2014 + +* XXX + + +0.999 +~~~~~ + +Released on December 23, 2013 + +* Fix #127: add work-around for CPython issue #20007: .read(0) on + http.client.HTTPResponse drops the rest of the content. + +* Fix #115: lxml treewalker can now deal with fragments containing, at + their root level, text nodes with non-ASCII characters on Python 2. + + +0.99 +~~~~ + +Released on September 10, 2013 + +* No library changes from 1.0b3; released as 0.99 as pip has changed + behaviour from 1.4 to avoid installing pre-release versions per + PEP 440. + + +1.0b3 +~~~~~ + +Released on July 24, 2013 + +* Removed ``RecursiveTreeWalker`` from ``treewalkers._base``. Any + implementation using it should be moved to + ``NonRecursiveTreeWalker``, as everything bundled with html5lib has + for years. + +* Fix #67 so that ``BufferedStream`` to correctly returns a bytes + object, thereby fixing any case where html5lib is passed a + non-seekable RawIOBase-like object. + + +1.0b2 +~~~~~ + +Released on June 27, 2013 + +* Removed reordering of attributes within the serializer. There is now + an ``alphabetical_attributes`` option which preserves the previous + behaviour through a new filter. This allows attribute order to be + preserved through html5lib if the tree builder preserves order. + +* Removed ``dom2sax`` from DOM treebuilders. It has been replaced by + ``treeadapters.sax.to_sax`` which is generic and supports any + treewalker; it also resolves all known bugs with ``dom2sax``. + +* Fix treewalker assertions on hitting bytes strings on + Python 2. Previous to 1.0b1, treewalkers coped with mixed + bytes/unicode data on Python 2; this reintroduces this prior + behaviour on Python 2. Behaviour is unchanged on Python 3. + + +1.0b1 +~~~~~ + +Released on May 17, 2013 + +* Implementation updated to implement the `HTML specification + `_ as of 5th May + 2013 (`SVN `_ revision r7867). + +* Python 3.2+ supported in a single codebase using the ``six`` library. + +* Removed support for Python 2.5 and older. + +* Removed the deprecated Beautiful Soup 3 treebuilder. + ``beautifulsoup4`` can use ``html5lib`` as a parser instead. Note that + since it doesn't support namespaces, foreign content like SVG and + MathML is parsed incorrectly. + +* Removed ``simpletree`` from the package. The default tree builder is + now ``etree`` (using the ``xml.etree.cElementTree`` implementation if + available, and ``xml.etree.ElementTree`` otherwise). + +* Removed the ``XHTMLSerializer`` as it never actually guaranteed its + output was well-formed XML, and hence provided little of use. + +* Removed default DOM treebuilder, so ``html5lib.treebuilders.dom`` is no + longer supported. ``html5lib.treebuilders.getTreeBuilder("dom")`` will + return the default DOM treebuilder, which uses ``xml.dom.minidom``. + +* Optional heuristic character encoding detection now based on + ``charade`` for Python 2.6 - 3.3 compatibility. + +* Optional ``Genshi`` treewalker support fixed. + +* Many bugfixes, including: + + * #33: null in attribute value breaks XML AttValue; + + * #4: nested, indirect descendant,