mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +02:00

The test suite for the tidy extension was written before HTML5 was "standardized". The new tidy-html5 library will output an HTML5 DOCTYPE in the absence of any other information, so the expected test outputs have been updated to accomodate the absense of an HTML version (which is how you declare "HTML5").
21 lines
299 B
PHP
21 lines
299 B
PHP
--TEST--
|
|
tidy_clean_repair()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$a = tidy_parse_string("<HTML></HTML>");
|
|
tidy_clean_repair($a);
|
|
echo tidy_get_output($a);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
<!DOCTYPE html%S>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|