Index: /CKEditor/trunk/_source/core/dom/element.js
===================================================================
--- /CKEditor/trunk/_source/core/dom/element.js	(revision 3392)
+++ /CKEditor/trunk/_source/core/dom/element.js	(revision 3393)
@@ -398,5 +398,5 @@
 			};
 
-			if ( CKEDITOR.env.ie )
+			if ( CKEDITOR.env.ie && !CKEDITOR.env.ie8 )
 			{
 				return function( name )
@@ -890,5 +890,5 @@
 			};
 
-			if ( CKEDITOR.env.ie )
+			if ( CKEDITOR.env.ie && !CKEDITOR.env.ie8 )
 			{
 				return function( name, value )
@@ -954,5 +954,5 @@
 			};
 
-			if ( CKEDITOR.env.ie )
+			if ( CKEDITOR.env.ie && !CKEDITOR.env.ie8  )
 			{
 				return function( name )
Index: /CKEditor/trunk/_source/core/env.js
===================================================================
--- /CKEditor/trunk/_source/core/env.js	(revision 3392)
+++ /CKEditor/trunk/_source/core/env.js	(revision 3393)
@@ -105,4 +105,9 @@
 			 */
 			env.ie6Compat = ( version < 7 || env.quirks );
+			
+			/**
+			 *  Indicate IE8. 
+			 */
+			env.ie8 = (version >= 8);
 		}
 
Index: /CKEditor/trunk/_source/tests/core/dom/element.html
===================================================================
--- /CKEditor/trunk/_source/tests/core/dom/element.html	(revision 3392)
+++ /CKEditor/trunk/_source/tests/core/dom/element.html	(revision 3393)
@@ -400,4 +400,23 @@
 			var element = new CKEDITOR.dom.element( document.getElementById( 'tabIndexScriptDef' ) );
 			assert.areEqual( null, element.getAttribute( 'tabindex' ) );
+		},
+		
+		/**
+		 *  Test getAttribute and getAttribute will ingore  '_cke_expando' attribute. 
+		 */
+		test_getAttribute_ignoreExpandoAttributes : function()
+		{
+			var element = new CKEDITOR.dom.element( document.getElementById( 'testExpandoAttributes' ) );
+			assert.areEqual( 1, element.getAttribute( 'tabindex' ) );
+			element.removeAttribute( 'tabindex' );
+			assert.areEqual( 'hasExpando', element.getAttribute( 'class' ) );
+			element.removeAttribute( 'class' );
+			if( CKEDITOR.env.ie )
+				assert.areEqual( 'FLOAT: right', element.getAttribute( 'style' ) );
+			else 
+				assert.areEqual( 'float: right;', element.getAttribute( 'style' ) );
+			element.removeAttribute( 'style' );
+			element.removeAttribute( 'id' );
+			assert.isFalse( element.hasAttributes() );
 		},
 
@@ -506,4 +525,5 @@
 	<div id="removeOuter"><b id="removeInner"></b></div>
 	<div id="tabIndex10" tabindex="10"></div>
+	<div id="testExpandoAttributes" _cke_expando ="1" class="hasExpando" tabindex="1" style="float:right"></div>
 	<div id="tabIndexDef"></div>
 	<input id="tabIndexInputDef" />
