For HTML 5, drop type="" attributes for CSS/JS
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 11 Aug 2009 00:09:24 +0000 (00:09 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 11 Aug 2009 00:09:24 +0000 (00:09 +0000)
commit7aa4a8f90cae08e52b5976e23a9971971c2ac36c
tree9670ab990cfa519a81a38529c49d0aacea5750e9
parentbe378af50b612e85f42b1f38dc4c0cb45823c21b
For HTML 5, drop type="" attributes for CSS/JS

This time done in a nice, centralized fashion, reducing LOC for callers
even if HTML 5 is disabled.  The implementation is a new Html class,
similar to Xml but intended to be HTML-specific from the beginning
instead of half-heartedly attempting to provide generic XML services but
actually with lots of HTML-specific stuff tacked on.

As part of the new Html class, a global config option $wgWellFormedXml
is added.  It's set to true by default, but if set to false, the Html
class will drop some things that HTML 5 doesn't require, like
self-closing " />" syntax and attribute quotation marks (sometimes).
RELEASE-NOTES
includes/AutoLoader.php
includes/ChangesList.php
includes/DefaultSettings.php
includes/EditPage.php
includes/Html.php [new file with mode: 0644]
includes/Linker.php
includes/OutputPage.php
includes/Skin.php
includes/specials/SpecialSearch.php
maintenance/parserTests.inc