From b33626c3c7b70f6887d9f8699438b2e0fa80bf98 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Tue, 6 Jun 2023 15:32:30 +0100 Subject: [PATCH] remove trailing / on meta tags (#856) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * remove trailing / on meta tags Meta tags are [void elements](https://html.spec.whatwg.org/multipage/syntax.html#void-elements) which means they are self closing, and do not require a closing tag, nor a trailing `/`. The trailing `/` is something that was required in XHTML but [is ignored in HTML](https://html.spec.whatwg.org/multipage/syntax.html#start-tags). Quoth the spec: > On void elements, [the trailing slash] does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind. For such void elements, it should be used only with caution — especially since, if directly preceded by an unquoted attribute value, it becomes part of the attribute value rather than being discarded by the parser. * remove trailing / on link tags --- bskyweb/templates/base.html | 10 +++++----- bskyweb/templates/home.html | 14 +++++++------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/bskyweb/templates/base.html b/bskyweb/templates/base.html index abd312ed5e..1fa9ecbac9 100644 --- a/bskyweb/templates/base.html +++ b/bskyweb/templates/base.html @@ -1,8 +1,8 @@ - - + + {%- block head_title -%}Bluesky{%- endblock -%} @@ -111,9 +111,9 @@ } {% include "scripts.html" %} - - - + + + {% block html_head_extra -%}{%- endblock %} diff --git a/bskyweb/templates/home.html b/bskyweb/templates/home.html index 0677b91578..7beea49d9f 100644 --- a/bskyweb/templates/home.html +++ b/bskyweb/templates/home.html @@ -3,13 +3,13 @@ {% block head_title %}Bluesky{% endblock %} {% block html_head_extra -%} - - - - - - - + + + + + + + {%- endblock %} {% block noscript_extra %}