X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FMWTidy.php;h=5788986f2ebd9389a205789131739eb5a0a8d551;hb=0db03df62e8acd435fe3623eb70c5be0136bec64;hp=ffc884eb2d561af98f2af238599170f6fd92edf9;hpb=cf35ff756c89ca6d6e003b440076df5ebe7ccef7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/MWTidy.php b/includes/parser/MWTidy.php index ffc884eb2d..5788986f2e 100644 --- a/includes/parser/MWTidy.php +++ b/includes/parser/MWTidy.php @@ -52,27 +52,6 @@ class MWTidy { return $driver->tidy( $text ); } - /** - * Check HTML for errors, used if $wgValidateAllHtml = true. - * - * @param string $text - * @param string &$errorStr Return the error string - * @return bool Whether the HTML is valid - * @throws MWException - */ - public static function checkErrors( $text, &$errorStr = null ) { - $driver = self::singleton(); - if ( !$driver ) { - throw new MWException( __METHOD__ . - ': tidy is disabled, caller should have checked MWTidy::isEnabled()' ); - } - if ( $driver->supportsValidate() ) { - return $driver->validate( $text, $errorStr ); - } else { - throw new MWException( __METHOD__ . ": error text return from HHVM tidy is not supported" ); - } - } - /** * @return bool */ @@ -132,12 +111,6 @@ class MWTidy { case 'RaggettExternal': $instance = new MediaWiki\Tidy\RaggettExternal( $config ); break; - case 'Html5Depurate': - $instance = new MediaWiki\Tidy\Html5Depurate( $config ); - break; - case 'Html5Internal': - $instance = new MediaWiki\Tidy\Html5Internal( $config ); - break; case 'RemexHtml': $instance = new MediaWiki\Tidy\RemexDriver( $config ); break;