php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58195 Works on other versions
Submitted: 2008-05-14 10:28 UTC Modified: 2008-05-22 08:44 UTC
From: alex dot lu at complinet dot com Assigned:
Status: Not a bug Package: tidy (PECL)
PHP Version: 5.2.0 OS: Debian
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alex dot lu at complinet dot com
New email:
PHP Version: OS:

 

 [2008-05-14 10:28 UTC] alex dot lu at complinet dot com
Description:
------------
Unable to tidy illegal nesting problem.

If a few block tags are wrapped with an inline tag, the inline tag should be removed and replaced in each block tag.

This works with perl and command line version.

Reproduce code:
---------------
$note = "<b><div>123</div><div>234</div><p>345</p></b>";

$note = tidy_parse_string($note);
tidy_repair_string($note);

echo $note;

Expected result:
----------------
<pre>
<div><b>123</b></div>
<div><b>234</b></div>
<p><b>345</b></p>
</pre>

Actual result:
--------------
<pre>
<div><b>123</b></div>
<div>234</div>
<p>345</p>
</pre>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-05-14 10:33 UTC] alex dot lu at complinet dot com
In the expected and actual result, please ignore the <pre> tags.
 [2008-05-17 10:03 UTC] nlopess@php.net
This is not a bug in PHP's tidy extension, but in libtidy itself.
Please report bugs in libtidy to: http://sf.net/tracker/?group_id=27659
 [2008-05-22 08:44 UTC] alex dot lu at complinet dot com
However, this works for htmltidy for windows as well as other applications running on windows platform. It also works for perl version.

HTMLTidy forum suggests me to report this bug on php version.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 17:01:33 2024 UTC