├── lint_lib ├── __init__.py ├── _vendor │ ├── __init__.py │ ├── funcparserlib │ │ ├── __init__.py │ │ ├── py.typed │ │ ├── util.pyi │ │ ├── lexer.pyi │ │ ├── LICENSE │ │ ├── util.py │ │ ├── parser.pyi │ │ └── lexer.py │ └── vendor.txt ├── _vendor-patches │ └── funcparserlib.patch ├── parser.py └── lint.py ├── .gitattributes ├── encoding ├── tests1.dat ├── chardet │ └── test_big5.txt ├── scripted │ └── tests1.dat ├── test-yahoo-jp.dat └── tests2.dat ├── lint ├── tokenizer ├── pendingSpecChanges.test ├── xmlViolation.test ├── unicodeCharsProblematic.test ├── escapeFlag.test ├── contentModelFlags.test └── README.md ├── pyproject.toml ├── tree-construction ├── scripted │ ├── adoption01.dat │ ├── webkit01.dat │ └── ark.dat ├── namespace-sensitivity.dat ├── adoption02.dat ├── main-element.dat ├── search-element.dat ├── isindex.dat ├── pending-spec-changes.dat ├── inbody01.dat ├── pending-spec-changes-plain-text-unsafe.dat ├── tests24.dat ├── tests4.dat ├── quirks01.dat ├── tests14.dat ├── tests12.dat ├── svg.dat ├── math.dat ├── tests8.dat ├── tests17.dat ├── tests5.dat ├── tests23.dat ├── comments01.dat ├── tests15.dat ├── tests25.dat ├── tests22.dat ├── menuitem-element.dat ├── README.md ├── noscript01.dat ├── ruby.dat ├── tests3.dat ├── html5test-com.dat ├── entities02.dat ├── tests21.dat ├── adoption01.dat ├── tricky01.dat ├── scriptdata01.dat ├── tables01.dat └── tests7.dat ├── .github └── workflows │ ├── lint.yml │ └── downstream.yml ├── AUTHORS.rst ├── LICENSE ├── .gitignore └── serializer ├── options.test ├── whitespace.test ├── injectmeta.test └── core.test /lint_lib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lint_lib/_vendor/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lint_lib/_vendor/funcparserlib/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lint_lib/_vendor/funcparserlib/py.typed: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /lint_lib/_vendor/vendor.txt: -------------------------------------------------------------------------------- 1 | funcparserlib==1.0.1 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.dat -text diff 2 | *.test -text diff 3 | -------------------------------------------------------------------------------- /encoding/tests1.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html5lib/html5lib-tests/HEAD/encoding/tests1.dat -------------------------------------------------------------------------------- /lint: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | import sys 3 | 4 | import lint_lib.lint as lint 5 | 6 | sys.exit(lint.main()) 7 | -------------------------------------------------------------------------------- /encoding/chardet/test_big5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html5lib/html5lib-tests/HEAD/encoding/chardet/test_big5.txt -------------------------------------------------------------------------------- /encoding/scripted/tests1.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 3 | 4 | #encoding 5 | iso-8859-2 6 | -------------------------------------------------------------------------------- /lint_lib/_vendor/funcparserlib/util.pyi: -------------------------------------------------------------------------------- 1 | from typing import TypeVar, Callable, List, Text 2 | 3 | _A = TypeVar("_A") 4 | 5 | def pretty_tree( 6 | x: _A, kids: Callable[[_A], List[_A]], show: Callable[[_A], Text] 7 | ) -> Text: ... 8 | -------------------------------------------------------------------------------- /tokenizer/pendingSpecChanges.test: -------------------------------------------------------------------------------- 1 | {"tests": [ 2 | 3 | {"description":" 6 |