adding exception for <nav> tags in html validation

This commit is contained in:
kakwa 2019-02-09 18:40:48 +01:00
parent a56c491ee1
commit f13961790f
1 changed files with 4 additions and 1 deletions

View File

@ -82,7 +82,10 @@ class HtmlValidationFailed(Exception):
def _is_html_error(line):
ret = True
for p in [r'.*Warning: trimming empty <span>.*']:
for p in [
r'.*Warning: trimming empty <span>.*',
r'.*Error: <nav> is not recognized!.*'
]:
if re.match(p, line):
ret = False
return ret