X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fforms%2Fdialogs%2Fhiddenfield.js;h=2f629a916a1624643219e6c7984e6b0671c0b117;hb=fb481ba0a7d298e3e7b9034fcb9f2afdc6e8e796;hp=abfa550adc9516fc4bc23deb25b0a19eda699d45;hpb=48b1db88210b4160dce439c6e3e32e14af8c106b;p=ckeditor.git
diff --git a/_source/plugins/forms/dialogs/hiddenfield.js b/_source/plugins/forms/dialogs/hiddenfield.js
index abfa550..2f629a9 100644
--- a/_source/plugins/forms/dialogs/hiddenfield.js
+++ b/_source/plugins/forms/dialogs/hiddenfield.js
@@ -1,5 +1,5 @@
/*
-Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
+Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'hiddenfield', function( editor )
@@ -30,7 +30,9 @@ CKEDITOR.dialog.add( 'hiddenfield', function( editor )
var name = this.getValueOf( 'info', '_cke_saved_name' ),
value = this.getValueOf( 'info', 'value' ),
editor = this.getParentEditor(),
- element = CKEDITOR.env.ie ? editor.document.createElement( '' ) : editor.document.createElement( 'input' );
+ element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ?
+ editor.document.createElement( '' )
+ : editor.document.createElement( 'input' );
element.setAttribute( 'type', 'hidden' );
this.commitContent( element );