JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.6.3
[ckeditor.git] / _source / plugins / forms / dialogs / hiddenfield.js
index e6abc29..2f629a9 100644 (file)
@@ -1,5 +1,5 @@
 /*\r
-Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2012, 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
@@ -30,7 +30,9 @@ CKEDITOR.dialog.add( 'hiddenfield', function( editor )
                        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