]> Lady’s Gitweb - Gitweb/commit
gitweb: remove invalid http-equiv="content-type"
authorJason Yundt <redacted>
Tue, 8 Mar 2022 15:56:12 +0000 (10:56 -0500)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:33 +0000 (00:51 -0400)
commitd73e7f57c959e8c058edc2671fae5ff07ddb11457554afe6bf82b7409d35712a
tree29864871f002fac0f8d1a5778f1da76a4b7b09da746daabee50b80e0c47dc98a
parentd5ca249cbe6db5b1ebe794cb3007f2989e36bd62bfad51bf7c2a6482a48ca159
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.204759 seconds and 4 git commands to generate.