fix: Fix some HTML validation errors that came in via #4035 (#4066)

* fix: Fix some HTML validation errors that came in via #4035

Also make validation errors display a bit better.

* content -> color for mask-icon (caught by @jennifer-richards; thanks)
This commit is contained in:
Lars Eggert 2022-06-16 19:59:12 +03:00 committed by GitHub
parent 8c769521f0
commit 411b5f4747
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 8 deletions

View file

@ -12,8 +12,8 @@
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon"
href="{% static 'ietf/images/ietf-logo-nor-mask.svg' %}"
{% if server_mode and server_mode == 'production' %}color="#ffffff"{% else %}color="#ffc4c4"{% endif %}>
color="{% if server_mode and server_mode == 'production' %}#ffffff{% else %}#ffc4c4{% endif %}">
<meta name="msapplication-TileColor"
{% if server_mode and server_mode == 'production' %}content="#ffffff"{% else %}color="#ffc4c4"{% endif %}>
content="{% if server_mode and server_mode == 'production' %}#ffffff{% else %}#ffc4c4{% endif %}">
<meta name="theme-color"
{% if server_mode and server_mode == 'production' %}content="#ffffff"{% else %}color="#ffc4c4"{% endif %}>
content="{% if server_mode and server_mode == 'production' %}#ffffff{% else %}#ffc4c4{% endif %}">

View file

@ -125,7 +125,7 @@
{% block morecss %}{% endblock %}
</style>
{% block pagehead %}{% endblock %}\
{% block pagehead %}{% endblock %}
{% include "base/icons.html" %}
</head>
<body {% block bodyAttrs %}{% endblock %}>

View file

@ -997,10 +997,9 @@ class IetfTestRunner(DiscoverRunner):
for msg in json.loads(result)["messages"]:
if vnu_filter_message(msg, False, True):
continue
errors = vnu_fmt_message(file, msg, content)
if errors:
testcase.fail(errors)
errors = vnu_fmt_message(file, msg, content.decode("utf-8"))
if errors:
testcase.fail(errors)
tmpdir.cleanup()