|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-29 07:49 UTC] ca50015 at yahoo dot com
[2005-06-17 07:40 UTC] nlopess at -php dot net
[2005-06-17 16:53 UTC] john@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 19:00:01 2025 UTC |
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">