Use DTD as well as doctype to put browsers in standards compliance mode
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 27 Jun 2003 07:30:33 +0000 (07:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 27 Jun 2003 07:30:33 +0000 (07:30 +0000)
includes/DefaultSettings.php
includes/OutputPage.php

index 926cf84..40c7834 100644 (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";
index d09dcdd..21019c3 100644 (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;