title: Wordpress anchor tag contents moved out after switching to visual and back to text mode
body: <p>Using <code>&lt;a name="foobar"&gt;Hello&lt;/a&gt;</code> in the text mode editor and switching to visual mode and back to text editor results in 'Hello'. Using latest wordpress 4.8.2. Anchor tag itself works but not sure why the contents are moved out of the a tag. Any idea?</p>