Use DTD as well as doctype to put browsers in standards compliance mode

This commit is contained in:
Brion Vibber 2003-06-27 07:30:33 +00:00
parent 67fcd9e407
commit ec691bbb21
2 changed files with 3 additions and 2 deletions

View file

@ -44,6 +44,7 @@ $wgInputEncoding = "ISO-8859-1";
$wgOutputEncoding = "ISO-8859-1";
$wgEditEncoding = "";
$wgDocType = "-//W3C//DTD HTML 4.01 Transitional//EN";
$wgDTD = "http://www.w3.org/TR/html4/loose.dtd";
$wgAmericanDates = false; # Enable for English module to print dates
# as eg 'May 12' instead of '12 May'
$wgLocalInterwiki = "w";

View file

@ -1267,9 +1267,9 @@ class OutputPage {
/* private */ function headElement()
{
global $wgDocType, $wgUser, $wgLanguageCode, $wgOutputEncoding;
global $wgDocType, $wgDTD, $wgUser, $wgLanguageCode, $wgOutputEncoding;
$ret = "<!DOCTYPE HTML PUBLIC \"$wgDocType\">\n";
$ret = "<!DOCTYPE HTML PUBLIC \"$wgDocType\" \"$wgDTD\">\n";
if ( "" == $this->mHTMLtitle ) {
$this->mHTMLtitle = $this->mPagetitle;