[wp-trac] [WordPress Trac] #20089: Visual editor messes up links in headers

WordPress Trac wp-trac at lists.automattic.com
Tue Feb 21 17:10:24 UTC 2012


#20089: Visual editor messes up links in headers
--------------------------+-----------------------------
 Reporter:  jikamens      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Editor        |    Version:  3.3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 Create a new post.

 In HTML mode, put this in the post:

 <h2><a name="foo" href="#bar">Foo</a></h2>

 Switch to Visual mode.

 Switch back to HTML mode.

 Note how it now reads:

 <h2><a name="foo" href="#bar"></a>Foo</h2>

 I.e., the "</a>" tag has been moved, and the header is no longer a link.

 This doesn't happen if you leave off the "name='foo'".

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


More information about the wp-trac mailing list