|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56277 tidy_repair_string would turn "<a name=n>" to "<a name=n id=n>"
Submitted: 2005-01-29 07:40 UTC Modified: 2005-06-17 16:53 UTC
From: ca50015 at yahoo dot com Assigned:
Status: Not a bug Package: tidy (PECL)
PHP Version: 5.0.3 OS: windows 2000
Private report: No CVE-ID: None
 [2005-01-29 07:40 UTC] ca50015 at yahoo dot com
`tidy_repair_string' would add unexpected `id' attribute to "<a>" tag if it has a `name' attribute .
the new added `id' has the same value as `name' .

Reproduce code:
$s = "<a name=\"n\"></a>";
$t = tidy_repair_string($s);
preg_match('/<a.*?>/', $t, $a);
echo $a[0];

Expected result:
<a name="n">

Actual result:
<a name="n" id="n">


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-29 07:49 UTC] ca50015 at yahoo dot com
 [2005-06-17 07:40 UTC] nlopess at -php dot net
this already fixed in the latest libtidy.
Please upgrade it. (
 [2005-06-17 16:53 UTC]
Sorry, but your problem does not imply a bug in PECL itself.  For a
list of more appropriate places to ask for help using PECL, please
visit as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PECL.

Not an ext problem, a problem in libtidy
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Jul 15 07:01:28 2024 UTC