Index: /CKEditor/trunk/_source/plugins/styles/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/styles/plugin.js	(revision 5999)
+++ /CKEditor/trunk/_source/plugins/styles/plugin.js	(revision 6000)
@@ -1118,5 +1118,5 @@
 	}
 
-	function getElement( style, targetDocument )
+	function getElement( style, targetDocument, element )
 	{
 		var el;
@@ -1132,4 +1132,8 @@
 		// Create the element.
 		el = new CKEDITOR.dom.element( elementName, targetDocument );
+
+		// #6226: attributes should be copied before the new ones are applied
+		if ( element )
+			element.copyAttributes( el );
 
 		return setupElement( el, style );
