mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-24 00:50:35 +00:00
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:
parent
9d502f5ee2
commit
aa67f598dd
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@ def validate_html(html):
|
||||||
_, errors = tidy_document(
|
_, errors = tidy_document(
|
||||||
html.content,
|
html.content,
|
||||||
options={
|
options={
|
||||||
|
"doctype": "html5",
|
||||||
"drop-empty-elements": False,
|
"drop-empty-elements": False,
|
||||||
"warn-proprietary-attributes": False,
|
"warn-proprietary-attributes": False,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue