TinyMCE breaks HTML anchors with the "name" attribute
|Reported by:||RanYanivHartstein||Owned by:|
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:
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:
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.