mirror of
https://github.com/php/php-src.git
synced 2024-10-10 11:12:08 +00:00
6048907029
amount of confusion when setting Tidy configuration options. All configuration must now be done pre-parsing of the document. Removed references to the tidy_attr class, as it is no longer used (since tidy 2.0) and made tidy throw exceptions for all truly non-fatal errors.
19 lines
529 B
PHP
19 lines
529 B
PHP
--TEST--
|
|
Verbose tidy_get_error_buffer()
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("tidy")) print "skip"; ?>
|
|
--POST--
|
|
--GET--
|
|
--INI--
|
|
--FILE--
|
|
<?php
|
|
$a = tidy_parse_string("<HTML><asd asdf></HTML>");
|
|
echo tidy_get_error_buffer($a);
|
|
|
|
?>
|
|
--EXPECT--
|
|
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
|
|
line 1 column 7 - Error: <asd> is not recognized!
|
|
line 1 column 7 - Warning: discarding unexpected <asd>
|
|
line 1 column 17 - Warning: discarding unexpected </html>
|
|
line 1 column 7 - Warning: inserting missing 'title' element
|