﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8368	Incorrect DOM structure after applying an anchor style to a selection that already contains a styled anchor	Teresa Monahan		"When a selection contains an anchor that has some styling, and the user tries to apply another anchor to this selection, the DOM structure returned after applying the anchor is malformed.

To Reproduce:
1. Add the following HTML to the editor through source mode:
{{{
<p>
	Sample text <a href=""http://ckeditor.com""><strong>Anchor </strong></a>more text</p>
}}}
2. Switch back to wysiwyg mode and select the entire editor contents.
3. Click the Link icon on the toolbar and enter a url for the selection e.g. www.ibm.com. Click OK.
4. Inspect the DOM for the editor contents - see the attached screen capture.
'''Problem:''' The DOM contains nested anchor nodes and an empty strong tag. 

Note: Do not switch into source mode before inspecting the DOM - this corrects the DOM structure.


This issue causes problems for us in one of our extensions which needs to work with the DOM after the anchor styling is applied.

In the example above, applyInlineStyle from styles/plugin.js is used to apply the anchor to the selection. Is it possible to change the way this handles anchors in the selection to avoid this incorrect DOM structure?"	Bug	closed	Normal		Core : Styles	3.0	duplicate	IBM	Damian Satya Minnekanti
