]> git.ipfire.org Git - thirdparty/git.git/commit
gitweb: remove invalid http-equiv="content-type"
authorJason Yundt <jason@jasonyundt.email>
Tue, 8 Mar 2022 15:56:12 +0000 (10:56 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 8 Mar 2022 18:10:16 +0000 (10:10 -0800)
commita262585d813482c06bf121ad41377f29eadd2bc1
tree58e5e5885c69e66619f29d52fa72970c30da0a4b
parent943fd02769d4d3fc8daab64cfcd7cc2c967f75ef
gitweb: remove invalid http-equiv="content-type"

Before this change, gitweb would generate pages which included:

<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/>

When a meta's http-equiv equals "content-type", the http-equiv is said
to be in the "Encoding declaration state". According to the HTML
Standard,

The Encoding declaration state may be used in HTML documents,
but elements with an http-equiv attribute in that state must not
be used in XML documents.

Source: <https://html.spec.whatwg.org/multipage/semantics.html#attr-meta-http-equiv-content-type>

This change removes that meta element since gitweb always generates XML
documents.

Signed-off-by: Jason Yundt <jason@jasonyundt.email>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl
t/t9502-gitweb-standalone-parse-output.sh