[wp-trac] [WordPress Trac] #17330: TinyMCE breaks HTML anchors with the "name" attribute

WordPress Trac wp-trac at lists.automattic.com
Thu May 5 08:47:41 UTC 2011


#17330: TinyMCE breaks HTML anchors with the "name" attribute
-------------------------------+-----------------------------
 Reporter:  RanYanivHartstein  |      Owner:
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  TinyMCE            |    Version:
 Severity:  minor              |   Keywords:
-------------------------------+-----------------------------
 When you create an HTML anchor with the name attribute in the HTML editor,
 and then switch to the visual editor, it removes the contents of the tag
 and places it outside of it, leaving the tag empty.

 To reproduce, enter this in the HTML editor:

 {{{
 <a name="bob">Inside</a>
 }}}

 Switch to the visual editor (notice the word "inside" isn't styled as an
 anchor), and then switch back to the HTML editor. This is what it will
 look like:

 {{{
 <a name="bob"></a>Inside
 }}}

 This only seems to happen with the name attribute - couldn't reproduce
 with other attributes such as id.

 Initially reported by a WordPress.com user. Tested on latest WordPress.org
 trunk.

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


More information about the wp-trac mailing list