mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 08:36:32 +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(
|
||||
html.content,
|
||||
options={
|
||||
"doctype": "html5",
|
||||
"drop-empty-elements": False,
|
||||
"warn-proprietary-attributes": False,
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue