php.net |  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
Description:
------------
`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">

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-01-29 07:49 UTC] ca50015 at yahoo dot com
thanks
 [2005-06-17 07:40 UTC] nlopess at -php dot net
this already fixed in the latest libtidy.
Please upgrade it. (http://tidy.sf.net)
 [2005-06-17 16:53 UTC] john@php.net
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 http://pecl.php.net/support/ 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-2022 The PHP Group
All rights reserved.
Last updated: Mon Jan 24 20:03:33 2022 UTC