Index: /FCKeditor/trunk/editor/_source/internals/fck_gecko.js
===================================================================
--- /FCKeditor/trunk/editor/_source/internals/fck_gecko.js	(revision 598)
+++ /FCKeditor/trunk/editor/_source/internals/fck_gecko.js	(revision 599)
@@ -124,4 +124,6 @@
 				// no suitable next siblings under our grandparent! what to do next?
 				while ( node.parentNode 
+					&& node.parentNode != FCK.EditorDocument.body
+					&& node.parentNode != FCK.EditorDocument.documentElement
 					&& node == node.parentNode.lastChild 
 					&& ( ! FCKListsLib.BlockElements[node.parentNode.tagName.toLowerCase()] ) )
