git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Removes the <?xml?> declaration from gitweb.pl

From
PPazu <pazu@pazu.com.br>
Date
Oct 11, 2006, 21:13 UTC
Message-ID
<egjmri$atp$1@sea.gmane.org>
In-Reply-To
<egjllu$6k8$1@sea.gmane.org>
The XML declaration forces IE6 into quirks mode, breaking our
nice standards compliant stylesheet.
Signed-off-by: Marcus Brito <pazu@pazu.com.br>
---
  gitweb/gitweb.perl |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 0ec1eef..ecb3b66 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1357,7 +1357,6 @@ sub git_header_html {
     print $cgi->header(-type=>$content_type, -charset => 'utf-8',
                        -status=> $status, -expires => $expires);
     print <<EOF;
-<?xml version="1.0" encoding="utf-8"?>
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
  <!-- git web interface version $version, (C) 2005-2006, Kay Sievers 
<kay.sievers\@vrfy.org>, Christian Gierke -->
-- 
1.4.2.3
Previous: PazuNext: Jakub Narebski
Message 5 of 16 in “Gitweb indentation wrong in Internet Explorer”
  1. Ralf BaechleOct 11, 2006
  2. Jakub NarebskiOct 11, 2006
  3. Ralf BaechleOct 11, 2006
  4. PazuOct 11, 2006
  5. Removes the <?xml?> declaration from gitweb.plPazu, Oct 11, 2006
  6. Jakub NarebskiOct 11, 2006
  7. PazuOct 12, 2006
  8. PazuOct 12, 2006
  9. Robin RosenbergOct 12, 2006
  10. Jakub NarebskiOct 12, 2006
  11. PazuOct 13, 2006
  12. Jakub NarebskiOct 13, 2006
  13. PazuOct 13, 2006
  14. Robin RosenbergOct 13, 2006
  15. Jakub NarebskiOct 13, 2006
  16. Luben TuikovOct 11, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.