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.
$dir = $wgContLang->getDir();
if ( $wgHtml5 ) {
$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";
$ret .= "<html lang=\"$wgContLanguageCode\" dir=\"$dir\">\n";
} else {
$ret .= "<!DOCTYPE html PUBLIC \"$wgDocType\" \"$wgDTD\">\n";