From 81c5188e1b0ccfdc82c98f442e3933f4b8b63c44 Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 12 Jul 2009 17:55:18 +0000 Subject: [PATCH] Turn off $wgHtml5 by default 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 | 2 +- includes/DefaultSettings.php | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2a9ce51523..5dd2753502 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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
. -* 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 . diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 5e9811f982..fc1f6935d4 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -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. -- 2.20.1