Explicitly set doctype to html5 when invoking tidy_document()

Many tests break without this on newer versions of html-tidy.
This commit is contained in:
Adeodato Simó 2023-12-11 19:40:48 -03:00
parent 9d502f5ee2
commit aa67f598dd
No known key found for this signature in database
GPG key ID: CDF447845F1A986F

View file

@ -8,6 +8,7 @@ def validate_html(html):
_, errors = tidy_document(
html.content,
options={
"doctype": "html5",
"drop-empty-elements": False,
"warn-proprietary-attributes": False,
},