Abstract and refactor Tidy support
authorTim Starling <tstarling@wikimedia.org>
Mon, 31 Aug 2015 04:42:55 +0000 (14:42 +1000)
committerOri Livneh <ori@wikimedia.org>
Fri, 11 Sep 2015 03:18:52 +0000 (20:18 -0700)
commit2c6c954e23ec28345655ee41568d3a3f386a659f
tree04bc13c9aa7464c1fd47513e99b0efc9ba835b6d
parent6931ce4c97c3cd61fa115e394648a9d02a99305f
Abstract and refactor Tidy support

* Split tidy implementations into a class hierarchy
* Bring all tidy configuration into a single associative array and
  deprecate the old configuration.
* Remove $wgAlwaysUseTidy

This is preparatory to replacement of Tidy (T89331). I used the name
"Raggett" for things relating to Dave Raggett's Tidy, since if we use
"tidy" to mean the new abstract system as well as Raggett's tidy, it
gets confusing.

Change-Id: I77af1a16cbbb47fc226d05fb9aad56c58e8910b5
24 files changed:
RELEASE-NOTES-1.26
autoload.php
includes/DefaultSettings.php
includes/Sanitizer.php
includes/parser/MWTidy.php
includes/parser/Parser.php
includes/tidy.conf [deleted file]
includes/tidy/RaggettBase.php [new file with mode: 0644]
includes/tidy/RaggettExternal.php [new file with mode: 0644]
includes/tidy/RaggettInternalHHVM.php [new file with mode: 0644]
includes/tidy/RaggettInternalPHP.php [new file with mode: 0644]
includes/tidy/RaggettWrapper.php [new file with mode: 0644]
includes/tidy/TidyDriverBase.php [new file with mode: 0644]
includes/tidy/tidy.conf [new file with mode: 0644]
maintenance/refreshLinks.php
tests/parser/parserTest.inc
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/ExtraParserTest.php
tests/phpunit/includes/SanitizerTest.php
tests/phpunit/includes/content/TextContentHandlerTest.php
tests/phpunit/includes/content/TextContentTest.php
tests/phpunit/includes/parser/NewParserTest.php
tests/phpunit/includes/parser/TagHooksTest.php
tests/phpunit/includes/parser/TidyTest.php