From: saran at inra dot co dot th Operating system: Windows 2000 PHP version: 5.0.0 PHP Bug Type: Unknown/Other Function Bug description: Tidy's "enclose-block-text" option doesn't works
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 bug report at http://bugs.php.net/?id=29199&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29199&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29199&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29199&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29199&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29199&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29199&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29199&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29199&r=support Expected behavior: http://bugs.php.net/fix.php?id=29199&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29199&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29199&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29199&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29199&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29199&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29199&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29199&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29199&r=float