Re: Gitweb indentation wrong in Internet Explorer
- From
- Pazu <pazu@pazu.com.br>
- Date
- Oct 11, 2006, 20:53 UTC
- Message-ID
- <egjllu$6k8$1@sea.gmane.org>
- In-Reply-To
- <egjang$nmh$1@sea.gmane.org>
Jakub Narebski wrote:
> Which version of gitweb? We have removed s/ / /g; in esc_html > subroutine in favor of using "white-space: pre;" in CSS some time ago, > and we have added escaping FORM FEED and ESCAPE characters.
The problem here is that "white-space: pre" is only supported by IE6 in standards compliance mode[1], but the DTD declaration for this page:
<?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">
surprisingly triggers IE6 quirks mode[2]. A quick fix to this problem would be changing the doctype declaration to use XHTML 1.0 Transitional instead of Strict, as that would trigger IE6 standards-compliance mode.
[1] http://msdn.microsoft.com/workshop/author/dhtml/reference/properties/whitespace.asp
[2] http://hsivonen.iki.fi/doctype/
-- Marcus