Experimentally enable HTML 5 doctype
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 10 Jul 2009 04:19:51 +0000 (04:19 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 10 Jul 2009 04:19:51 +0000 (04:19 +0000)
commitd2bf30bbdd63f8445719b001c0e0f7999d631062
treee62ee10bbeef9fff9c9ca06649721a731aa1bc69
parent88c4e50a637532e5af7bcf82c5797968044b4490
Experimentally enable HTML 5 doctype

Per wikitech-l discussion.  This also removes a <meta> tag that was
completely pointless, but theoretically required by XHTML 1, yet causes
the HTML 5 validator to complain.

Together with a few other recent commits, this should cause at least
Special:BlankPage to validate as HTML 5.  Real pages may still have some
invalid markup that should be fixed -- in a large majority of cases,
markup that was poor practice in XHTML as well.  (The Wikimedia
copyright icon needs to have border="0" removed for everything to
validate 100% on Wikipedia.)

By Brion's request, this is still behind a config option, and can be
disabled with $wgHtml5 = false;.  I expect we'll be able to remove that
option in the near future, once everyone is satisfied that changing two
lines of HTML output that all browsers have demonstrably ignored since
the Paleolithic won't cause all Wikipedia users' computers to undergo a
spontaneous uncontrolled fission reaction or something.
includes/DefaultSettings.php
includes/OutputPage.php