Index: _source/core/dom/range.js
===================================================================
--- _source/core/dom/range.js	(revision 7404)
+++ _source/core/dom/range.js	(working copy)
@@ -1189,7 +1189,7 @@
 
 								isWhiteSpace = /^[\s\ufeff]/.test( siblingText );
 							}
-							else
+							else if ( sibling.type == CKEDITOR.NODE_ELEMENT )
 							{
 								// If this is a visible element.
 								// We need to check for the bookmark attribute because IE insists on
@@ -1228,6 +1228,8 @@
 										sibling = null;
 								}
 							}
+							else
+								isWhiteSpace = 1;
 
 							if ( isWhiteSpace )
 							{
