/*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.\r
For licensing, see LICENSE.html or http://ckeditor.com/license\r
*/\r
CKEDITOR.dialog.add( 'hiddenfield', function( editor )\r
var name = this.getValueOf( 'info', '_cke_saved_name' ),\r
value = this.getValueOf( 'info', 'value' ),\r
editor = this.getParentEditor(),\r
- element = CKEDITOR.env.ie ? editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) : editor.document.createElement( 'input' );\r
+ element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ?\r
+ editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' )\r
+ : editor.document.createElement( 'input' );\r
\r
element.setAttribute( 'type', 'hidden' );\r
this.commitContent( element );\r