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

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 22 01:10:31 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        |  Resolution:
 Keywords:  close         |
--------------------------+------------------------------
Changes (by azaozz):

 * keywords:   => close


Comment:

 `<a name="foo" href="#bar">` is not a link, it is an anchor. In HTML
 typically anchors don't wrap any text, so whether it's `<h2><a name="foo"
 href="#bar">Foo</a></h2>` or `<h2><a name="foo" href="#bar"></a>Foo</h2>`
 or even `<a name="foo" href="#bar"></a><h2>Foo</h2>` it works the same way
 (scrolls the page to it).

 Proper links `<h2><a href="http://site.com#bar">Foo</a></h2>` work as
 expected.

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


More information about the wp-trac mailing list