Index: /FCKeditor/trunk/_whatsnew.html
===================================================================
--- /FCKeditor/trunk/_whatsnew.html	(revision 1115)
+++ /FCKeditor/trunk/_whatsnew.html	(revision 1116)
@@ -115,4 +115,6 @@
 		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1406">#1406</a>] Editor
 			was always "dirty" if flash is available in the contents.</li>
+		<li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1561">#1561</a>] Non standard
+			elements are now properly applied if defined in the styles XML file.</li>
 		<li>Several compatibility fixes for Firefox 3 (Beta 1):
 			<ul>
Index: /FCKeditor/trunk/editor/_source/classes/fckstyle.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckstyle.js	(revision 1115)
+++ /FCKeditor/trunk/editor/_source/classes/fckstyle.js	(revision 1116)
@@ -865,6 +865,6 @@
 			{
 				// Check if the style element can be a child of the current
-				// node parent.
-				if ( ( FCK.DTD[ currentNode.parentNode.nodeName.toLowerCase() ] || FCK.DTD.span )[ elementName ] )
+				// node parent or if the element is not defined in the DTD.
+				if ( ( FCK.DTD[ currentNode.parentNode.nodeName.toLowerCase() ] || FCK.DTD.span )[ elementName ] || !FCK.DTD[ elementName ] )
 				{
 					// This node will be part of our range, so if it has not
