#29199 [Bgs]: Tidy's "enclose-block-text" option doesn't works
| From: | saran at inra dot co dot th | Date: | Sun, 18 Jul 2004 11:44:35 +0000 |
| Subject: | #29199 [Bgs]: Tidy's "enclose-block-text" option doesn't works | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62569@lists.php.net to get a copy of this message | ||
ID: 29199
User updated by: saran at inra dot co dot th
Reported By: saran at inra dot co dot th
Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Windows 2000
PHP Version: 5.0.0
New Comment:
I'm quite sure that this is not bogus. I have tried various version of
tidylib (from Aug, 2000 to recent version) it all did put <p> to
enclose bare text inside <td> with the option 'enclose-block-text' set
to true. This is what tidy's manual say
http://tidy.sourceforge.net/docs/quickref.html#enclose-block-text.
It
seem like this option never pass to tidy.
Previous Comments:
------------------------------------------------------------------------
[2004-07-18 01:44:03] curt@php.net
This is an issue with libtidy itself. It wont put <p> tags around
content inside of <td>'s.
------------------------------------------------------------------------
[2004-07-16 09:10:02] saran at inra dot co dot th
Description:
------------
Tidy's "enclose-block-text" option doesn't works. It should insert a
<p> element to enclose any text it finds in any element that allows
mixed content. In example below it should insert a <p> element to
enclose text inside a <td> element (as tidy.exe did with this same
option set to true).
Reproduce code:
---------------
<?
$html="
<html>
<body>
<table>
<tr>
<td>Test</td>
</tr>
</table>
</body>
</html>
";
$config=array('enclose-block-text'=>1);
$tidy=tidy_parse_string($html,$config);
echo tidy_get_body($tidy);
?>
Expected result:
----------------
<body>
<table>
<tr>
<td><p>Test</p></td>
</tr>
</table>
</body>
Actual result:
--------------
<body>
<table>
<tr>
<td>Test</td>
</tr>
</table>
</body>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29199&edit=1