From: mlee at kanhan dot com
Operating system: Windows
PHP version: 5.0.0RC3
PHP Bug Type: Unknown/Other Function
Bug description: Tidy's "clean" option does not convert font tags to style rules
Description:
------------
Supposedly Tidy should "strip out surplus presentational tags and
attributes replacing them by style rules and structural markup as
appropriate" if the "clean" option is set. For example:
<?php
$conf = array("clean" => TRUE);
$tidy = tidy_parse_file("clean_ex1.html", $conf);
tidy_clean_repair($tidy);
echo $tidy;
?>
And clean_ex1.html looks like this:
<HTML><HEAD><TITLE><TITLE></HEAD>
<BODY>
<FONT COLOR="red">Hello, World!</FONT><BR/>
<B><FONT SIZE=4 COLOR=#c0c0c0>More Text...</FONT></B>
</BODY>
</HTML>
It seems that Tidy just removes the font tags without adding any style
rules.
--
Edit bug report at http://bugs.php.net/?id=28841&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28841&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28841&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28841&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28841&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28841&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28841&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28841&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28841&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28841&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28841&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28841&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28841&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28841&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28841&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28841&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28841&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28841&r=float