Turn off $wgHtml5 by default
authorAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 12 Jul 2009 17:55:18 +0000 (17:55 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Sun, 12 Jul 2009 17:55:18 +0000 (17:55 +0000)
I discovered that the HTML 5 doctype does in fact trigger standards
mode in all major browsers . . . but the old XHTML 1.0 Transitional
doctype we were using did *not*.  It triggers "almost standards mode" in
some browsers.  The difference is causing some rendering issues that
will have to block deployment for the moment.

See r53034, r53035, r53136.

RELEASE-NOTES
includes/DefaultSettings.php

index 2a9ce51..5dd2753 100644 (file)
@@ -54,6 +54,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   interface will not appear in Special:AllMessages.
 * $wgRegisterInternalExternals can be used to record external links pointing 
   to same server
+* $wgHtml5 outputs an HTML 5 doctype instead of XHTML 1.0 Transitional.
 
 === New features in 1.16 ===
 
@@ -116,7 +117,6 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   task, to limit resource usage when the cache for a heavily-viewed article is
   invalidated. Requires an external daemon. 
 * Leading > is now syntax for <blockquote>.
-* Switched from XHTML 1.0 Transitional to HTML 5.
 * (bug 19576) Moved id attribues from anchors accompanying section headers to
   the section headers themselves, removing the redundant anchor elements.
 * Removed name attribute from <a id="top"></a>.
index 5e9811f..fc1f693 100644 (file)
@@ -875,12 +875,11 @@ $wgDTD                            = 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd';
 $wgXhtmlDefaultNamespace       = 'http://www.w3.org/1999/xhtml';
 
 /**
- * Temporary setting to disable HTML 5 for the unlikely event that it causes 
- * everything to blow up.  If all goes well, should be removed (and forced 
- * true) well before it ever makes it into a release.  If set to false, go back 
- * to serving an XHTML 1.0 Transitional doctype (per $wgDocType et al. above).
+ * Should we output an HTML 5 doctype?  This needs to be left off until some
+ * lingering rendering issues are resolved -- apparently it switches some
+ * browsers from "almost standards" mode to standards mode.
  */
-$wgHtml5 = true;
+$wgHtml5 = false;
 
 /**
  * Permit other namespaces in addition to the w3.org default.