Subject: Re: Gitweb indentation wrong in Internet Explorer

From: Pazu <[email-masked]>
Date: Wed, 11 Oct 2006 17:53:51 -0300

Jakub Narebski wrote:

> Which version of gitweb? We have removed s/ /&nbsp;/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