Index: /FCKeditor/trunk/editor/_source/internals/fckdomtools.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fckdomtools.js	(revision 1050)
+++ /FCKeditor/trunk/editor/_source/internals/fckdomtools.js	(revision 1051)
@@ -245,5 +245,5 @@
 	GetNextSourceElement : function( currentNode, ignoreSpaceTextOnly, stopSearchElements, ignoreElements )
 	{
-		while( ( currentNode = this.GetNextSourceNode( currentNode, true ) ) )	// Only one "=".
+		while( ( currentNode = this.GetNextSourceNode( currentNode, false ) ) )	// Only one "=".
 		{
 			if ( currentNode.nodeType == 1 )
@@ -252,6 +252,8 @@
 					break ;
 
-				if ( !ignoreElements || !currentNode.nodeName.IEquals( ignoreElements ) )
-					return currentNode ;
+				if ( ignoreElements && currentNode.nodeName.IEquals( ignoreElements ) )
+					return this.GetNextSourceElement( currentNode, ignoreSpaceTextOnly, stopSearchElements, ignoreElements ) ;
+				
+				return currentNode ;
 			}
 			else if ( ignoreSpaceTextOnly && currentNode.nodeType == 3 && currentNode.nodeValue.RTrim().length > 0 )
