Upper-case DOCTYPE in HTML5 for well-formedness
authorAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 12 Nov 2009 03:11:56 +0000 (03:11 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Thu, 12 Nov 2009 03:11:56 +0000 (03:11 +0000)
Apparently <!doctype html> is a syntax error in XML; <!DOCTYPE html> is
required.  Now I know.  This broke Twinkle and probably lots of other stuff, so
it would be good to sync this ASAP.  Sorry for the error.

includes/OutputPage.php

index 4896cd0..47e785d 100644 (file)
@@ -1791,7 +1791,7 @@ class OutputPage {
                $dir = $wgContLang->getDir();
 
                if ( $wgHtml5 ) {
-                       $ret .= "<!doctype html>\n";
+                       $ret .= "<!DOCTYPE html>\n";
                        $ret .= "<html lang=\"$wgContLanguageCode\" dir=\"$dir\">\n";
                } else {
                        $ret .= "<!DOCTYPE html PUBLIC \"$wgDocType\" \"$wgDTD\">\n";