ID:               28880
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Wont fix
 Bug Type:         Unknown/Other Function
 Operating System: Windows
 PHP Version:      5.0.0RC3
 Assigned To:      john
 New Comment:

I already did a long time ago :)

http://sourceforge.net/tracker/index.php?func=detail&aid=976839&group_id=27659&atid=390963

They said:
"I would suggest you report this problem to the author of 
the wrapper you are using, they should be able to figure 
out what is wrong here, I can't really tell without looking at the code
of the wrapper."

I also think this is a tidylib problem, but something could be
hard-coded (like other options are)...


Previous Comments:
------------------------------------------------------------------------

[2004-10-11 17:09:02] [EMAIL PROTECTED]

This isn't a PHP issue, it is a bug in the Tidy library. Please file
the report with tidy.sourceforge.net.

------------------------------------------------------------------------

[2004-06-22 13:40:19] [EMAIL PROTECTED]

Description:
------------
Tidy is defaulting output-xhtml to 0, thus generating bogus xhtml.
(note the difference between <br> and <br />)

Reproduce code:
---------------
<?

$xhtml = <<< HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<body>
<p>test<br /> test </p>

</body></html>

HTML;


$tidy = tidy_parse_string($xhtml);
$tidy->CleanRepair();
echo $tidy;
?>

Expected result:
----------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
<p>test<br />
test</p>
</body>
</html>

Actual result:
--------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<title></title>
</head>
<body>
<p>test<br>
test</p>
</body>
</html>


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28880&edit=1

Reply via email to