[wp-trac] [WordPress Trac] #21528: A tag bug with NAME and HREF parameter

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 9 17:26:45 UTC 2012


#21528: A tag bug with NAME and HREF parameter
---------------------------------+-----------------------------
 Reporter:  matthewvb@…          |      Owner:
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  General              |    Version:  3.4.1
 Severity:  normal               |   Keywords:
---------------------------------+-----------------------------
 I'm noticing a bug using a tags using 3.4.1. Tried on a few sites using
 3.4.1.

 To replicate:

 When editing a post, go in HTML view.

 Add a link with both a HREF and a NAME:
 <a href="http://google.com" name="#google">google</a>

 Click on Visual mode

 Go back to HTML mode. code now looks like:
 <a href="http://google.com" name="#google"></a>google

 Link text is being moved outside the a tag.

 I don't believe this should happen - you should, in theory, be able to put
 both an HREF and a NAME together, though perhaps this isn't valid syntax.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21528>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list