JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.5.3
[ckeditor.git] / _source / plugins / forms / dialogs / hiddenfield.js
index abfa550..ce63239 100644 (file)
@@ -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