Index: /FCKeditor/trunk/editor/_source/classes/fckeditingarea.js
===================================================================
--- /FCKeditor/trunk/editor/_source/classes/fckeditingarea.js	(revision 780)
+++ /FCKeditor/trunk/editor/_source/classes/fckeditingarea.js	(revision 781)
@@ -46,9 +46,12 @@
 
 	// Remove all child nodes from the target.
-	while( eTargetElement.childNodes.length > 0 )
-	{
-		if ( eTargetElement.childNodes[0].contentWindow )
-			eTargetElement.childNodes[0].contentWindow.document.body.innerHTML = "" ;
-		eTargetElement.removeChild( eTargetElement.childNodes[0] ) ;
+	var oChild ;
+	while( oChild = eTargetElement.firstChild )		// Only one "=".
+	{
+		// Set innerHTML = '' to avoid memory leak.
+		if ( oChild.contentWindow )
+			oChild.contentWindow.document.body.innerHTML = '' ;
+
+		eTargetElement.removeChild( oChild ) ;
 	}
 
