Skip to main content
Copyright (c) 2018 Andrew Porter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Download-URL: https://github.com/AndrewRPorter/hlint/releases
Description: hlint
=====

**hlint** uses Mozilla's HTML5 Validator instance to lint HTML documents. This project is heavily influenced by mozilla's own linter_.

.. _linter: https://github.com/mozilla/html5-lint

Installation
============

.. code::

pip install hlint

Usage
=====

.. code-block:: python

from hlint import lint

result = lint.check("index.html")
print(result)
assert(result.flag == True)

.. code-block:: python

from hlint import lint

results = lint.check_files(["index.html", "bad.html"])
print(results)
assert(results.total_error_count == 1)

Output
======

.. code::

Error: Bad value for attribute “href” on element “link”: Illegal character in scheme data: space is not allowed.
From line 3, column 6387; to line 3, column 7788
Error: Bad value for attribute “href” on element “link”: Illegal character in scheme data: space is not allowed.
From line 7, column 1; to line 7, column 842
Error: Bad value “1” for attribute “async” on element “script”.
From line 12, column 1; to line 12, column 303
Error: Bad value “toggle” for attribute “rel” on element “a”: The string “toggle” is not a registered keyword.
From line 29, column 121809; to line 29, column 121991
Error: Bad value “1” for attribute “required” on element “input”.
From line 29, column 123986; to line 29, column 124160
Error: Element “input” is missing required attribute “aria-expanded”.
From line 29, column 123986; to line 29, column 124160
Error: Attribute “ajaxify” not allowed on element “a” at this point.
From line 29, column 125356; to line 29, column 125575
Warning: The “name” attribute is obsolete. Consider putting an “id” attribute on the nearest container instead.
From line 29, column 126674; to line 29, column 126859
Error: Attribute “ajaxify” not allowed on element “a” at this point.
Error: The “scrolling” attribute on the “iframe” element is obsolete. Use CSS instead.
From line 29, column 134870; to line 29, column 134973
Error: The “marginheight” attribute on the “iframe” element is obsolete. Use CSS instead.
From line 29, column 134870; to line 29, column 134973
From line 29, column 135584; to line 29, column 135688
Error: The “aria-labelledby” attribute must point to an element in the same document.
From line 29, column 126125; to line 29, column 126258
There were errors. (Tried in the text/html mode.)

License
=======

MIT License

Copyright (c) 2018 Andrew Porter

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Platform: UNKNOWN

Metadata

Release files for hlint 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hlint 0.0.1
File Size Uploaded Provenance Actions
hlint-0.0.1.tar.gz 5.0 kB Without provenance Details for hlint-0.0.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for hlint 0.0.1
File Interpreter ABI Platform Actions
hlint-0.0.1-py3.5.egg Legacy Egg format - - Details for hlint-0.0.1-py3.5.egg
hlint-0.0.1-py3-none-any.whl Python 3 none any Details for hlint-0.0.1-py3-none-any.whl

Total release size: 20.9 kB

Release files / hlint-0.0.1.tar.gz

Download URL hlint-0.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
458e5dcea3299cbebe3e96c3632eea4a1ede13c12c39a762aae544418e86cf8d
BLAKE2b-256 checksum
How to use checksums
8c837590757374ac4a2391f75dd2fe2ba273a67a8d5a15154d8d56c17f1d3b9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

Release files / hlint-0.0.1-py3.5.egg

Download URL hlint-0.0.1-py3.5.egg
Size 8.0 kB
Tags Egg
SHA-256 checksum
How to use checksums
6ae7cca73bb700d625d000504c10b714bddbde53222d94374a21cf94759e48a5
BLAKE2b-256 checksum
How to use checksums
0669f35f2b18fb8530623999bdb7cb54fda0b17e04270fbafa320a7bd7074b62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

Release files / hlint-0.0.1-py3-none-any.whl

Download URL hlint-0.0.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
acb443c34691ea68ff37911a8c0ad35fd45b25546e8b20dca87ce0af7a474d3c
BLAKE2b-256 checksum
How to use checksums
dde331063a8d4838c5bcee60140fbda5338dcd0f132777a52bb60d7c7d741ca3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.9.1 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.5.2

Security for hlint 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

3 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page