Index: /CKEditor/trunk/_source/plugins/selection/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 5798)
+++ /CKEditor/trunk/_source/plugins/selection/plugin.js	(revision 5799)
@@ -275,5 +275,5 @@
 								// Avoid saving selection from within text input. (#5747)
 								var parentTag;
-								if ( nativeSel && nativeSel.type != 'Control'
+								if ( nativeSel && nativeSel.type && nativeSel.type != 'Control'
 									&& ( parentTag = nativeSel.createRange() )
 									&& ( parentTag = parentTag.parentElement() )
