Index: /CKEditor/branches/versions/3.6.x/CHANGES.html
===================================================================
--- /CKEditor/branches/versions/3.6.x/CHANGES.html	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/CHANGES.html	(revision 7066)
@@ -1,3 +1,3 @@
-﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <!--
 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
@@ -88,5 +88,4 @@
 		<li><a href="http://dev.ckeditor.com/ticket/7584">#7584</a> : Start number of the List dialog window now works with numbered list items.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/6975">#6975</a> : [IE6, IE7] A definition list crashes Internet Explorer on HTML output.</li>
-		<li><a href="http://dev.ckeditor.com/ticket/7492">#7492</a> : Styles overrides do not work on the same element tag.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/7841">#7841</a> : Deleting a column with a cell deleted in one of the rows does not work.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/7944">#7944</a> : The <em>Enter</em> key should not split or create new paragraphs inside caption elements.</li>
@@ -99,5 +98,5 @@
 		<li><a href="http://dev.ckeditor.com/ticket/7566">#7566</a> : BiDi: Increasing indentation of a list item changes the language direction.</li>
 		<li><a href="http://dev.ckeditor.com/ticket/7839">#7839</a> : [IE] Pasting multi-level numbered lists from Microsoft Word does not work properly.</li>
-		<li><a href="http://dev.ckeditor.com/ticket/188">#188</a> : [IE] Object selection was making the toolbar inactive in some situations.</li> 
+		<li><a href="http://dev.ckeditor.com/ticket/188">#188</a> : [IE] Object selection was making the toolbar inactive in some situations.</li>
 		<li>Updated the following language files:<ul>
 			<li><a href="http://dev.ckeditor.com/ticket/7834">#7834</a> : Dutch;</li>
Index: /CKEditor/branches/versions/3.6.x/_samples/output_xhtml.html
===================================================================
--- /CKEditor/branches/versions/3.6.x/_samples/output_xhtml.html	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_samples/output_xhtml.html	(revision 7066)
@@ -99,6 +99,5 @@
 						{
 								element		: 'span',
-								attributes		: { 'class' : '#(family)' },
-								overrides	: [ { element : 'span', attributes : { 'class' : /^Font(?:Comic|Courier|Times)$/ } } ]
+								attributes		: { 'class' : '#(family)' }
 						},
 
@@ -110,6 +109,5 @@
 							{
 								element		: 'span',
-								attributes	: { 'class' : '#(size)' },
-								overrides	: [ { element : 'span', attributes : { 'class' : /^Font(?:Smaller|Larger|Small|Big|Double)$/ } } ]
+								attributes	: { 'class' : '#(size)' }
 							} ,
 
@@ -123,6 +121,5 @@
 							{
 								element : 'span',
-								attributes : { 'class' : '#(color)' },
-								overrides	: [ { element : 'span', attributes : { 'class' : /^FontColor(?:1|2|3)$/ } } ]
+								attributes : { 'class' : '#(color)' }
 							},
 
@@ -130,6 +127,5 @@
 							{
 								element : 'span',
-								attributes : { 'class' : '#(color)BG' },
-								overrides	: [ { element : 'span', attributes : { 'class' : /^FontColor(?:1|2|3)BG$/ } } ]
+								attributes : { 'class' : '#(color)BG' }
 							},
 
Index: /CKEditor/branches/versions/3.6.x/_source/core/dom/node.js
===================================================================
--- /CKEditor/branches/versions/3.6.x/_source/core/dom/node.js	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_source/core/dom/node.js	(revision 7066)
@@ -656,5 +656,5 @@
 		/**
 		 * Checks if this node is read-only (should not be changed). Additionally
-		 * it returns the element that defines the read-only state of this node 
+		 * it returns the element that defines the read-only state of this node
 		 * (if present). It may be the node itself or any of its parent
 		 * nodes.
Index: /CKEditor/branches/versions/3.6.x/_source/plugins/dialog/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.6.x/_source/plugins/dialog/plugin.js	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_source/plugins/dialog/plugin.js	(revision 7066)
@@ -312,5 +312,5 @@
 								evt.stop();
 							}
-							
+
 							handleFieldValidated.call( item, !invalid, typeof retval == 'string' ? retval : undefined );
 							return invalid;
Index: /CKEditor/branches/versions/3.6.x/_source/plugins/fakeobjects/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.6.x/_source/plugins/fakeobjects/plugin.js	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_source/plugins/fakeobjects/plugin.js	(revision 7066)
@@ -169,7 +169,7 @@
 			height && element.setAttribute( 'height', replaceCssLength( element.getAttribute( 'height' ), height ) );
 		}
-		
+
 		return element;
-	}
+	};
 
 })();
Index: /CKEditor/branches/versions/3.6.x/_source/plugins/list/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.6.x/_source/plugins/list/plugin.js	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_source/plugins/list/plugin.js	(revision 7066)
@@ -1,3 +1,3 @@
-﻿﻿/*
+﻿/*
 Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
 For licensing, see LICENSE.html or http://ckeditor.com/license
@@ -152,8 +152,11 @@
 					}
 
-					if ( item.grandparent.getDirection( 1 ) != orgDir && currentListItem.type == CKEDITOR.NODE_ELEMENT )
-						currentListItem.setAttribute( 'dir', orgDir );
-					else
-						currentListItem.removeAttribute( 'dir' );
+					if ( currentListItem.type == CKEDITOR.NODE_ELEMENT )
+					{
+						if ( item.grandparent.getDirection( 1 ) != orgDir )
+							currentListItem.setAttribute( 'dir', orgDir );
+						else
+							currentListItem.removeAttribute( 'dir' );
+					}
 
 					for ( i = 0 ; i < item.contents.length ; i++ )
Index: /CKEditor/branches/versions/3.6.x/_source/plugins/styles/plugin.js
===================================================================
--- /CKEditor/branches/versions/3.6.x/_source/plugins/styles/plugin.js	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_source/plugins/styles/plugin.js	(revision 7066)
@@ -1129,7 +1129,6 @@
 	{
 		var def = style._.definition,
-			attributes = def.attributes,
+			attributes = CKEDITOR.tools.extend( {}, def.attributes, getOverrides( style )[ element.getName() ] ),
 			styles = def.styles,
-			overrides = getOverrides( style )[ element.getName() ],
 			// If the style is only about the element itself, we have to remove the element.
 			removeEmpty = CKEDITOR.tools.isEmpty( attributes ) && CKEDITOR.tools.isEmpty( styles );
@@ -1156,6 +1155,4 @@
 			element.removeStyle( styleName );
 		}
-
-		removeOverrides( element, overrides ) ;
 
 		if ( removeEmpty )
Index: /CKEditor/branches/versions/3.6.x/_source/plugins/table/dialogs/table.js
===================================================================
--- /CKEditor/branches/versions/3.6.x/_source/plugins/table/dialogs/table.js	(revision 7065)
+++ /CKEditor/branches/versions/3.6.x/_source/plugins/table/dialogs/table.js	(revision 7066)
@@ -523,6 +523,6 @@
 										{
 											var caption = nodeList.getItem( 0 );
-
-											var firstElementChild = caption.getFirst( CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT ) )
+											var firstElementChild = caption.getFirst( CKEDITOR.dom.walker.nodeType( CKEDITOR.NODE_ELEMENT ) );
+
 											if ( firstElementChild && !firstElementChild.equals( caption.getBogus() ) )
 											{
