[Codestriker-commits] CVS update: codestriker/lib/Codestriker/Http Response.pm
Brought to you by:
sits
|
From: <si...@us...> - 2008-07-01 10:06:47
|
User: sits
Date: 08/07/01 03:06:46
Modified: lib/Codestriker/Http Response.pm
Log:
Use a DTD which will put IE 6 and above into "standards compliant" mode, so that various CSS attributes like white-space will work.
Index: Response.pm
===================================================================
RCS file: /cvsroot/codestriker/codestriker/lib/Codestriker/Http/Response.pm,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- Response.pm 23 Jun 2008 07:12:06 -0000 1.46
+++ Response.pm 1 Jul 2008 10:06:46 -0000 1.47
@@ -244,7 +244,9 @@
# Print the basic HTML header header, with the inclusion of the scripts.
- print '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">';
+ # Make sure a DOCTYPE is used which will put IE 6 and above into
+ # "standards-compliant mode": http://msdn.microsoft.com/en-us/library/ms535242(VS.85).aspx.
+ print '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">';
print "\n";
print '<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">';
print "\n";
|