Index: /CKEditor/trunk/CHANGES.html
===================================================================
--- /CKEditor/trunk/CHANGES.html (revision 6295)
+++ /CKEditor/trunk/CHANGES.html (revision 6296)
@@ -75,4 +75,5 @@
#5930 : [IE] Style definitions are no longer lowercased.
#5361 : Preview window's title should reflect the title tag in full page mode.
+ #5522 : [IE] In versions < 8 or compatibility mode, type="text" was missing in text fields.
Index: /CKEditor/trunk/_source/plugins/forms/plugin.js
===================================================================
--- /CKEditor/trunk/_source/plugins/forms/plugin.js (revision 6295)
+++ /CKEditor/trunk/_source/plugins/forms/plugin.js (revision 6296)
@@ -150,20 +150,23 @@
if ( name == 'input' )
{
- var type = element.getAttribute( 'type' );
-
- if ( type == 'text' || type == 'password' )
- return { textfield : CKEDITOR.TRISTATE_OFF };
-
- if ( type == 'button' || type == 'submit' || type == 'reset' )
- return { button : CKEDITOR.TRISTATE_OFF };
-
- if ( type == 'checkbox' )
- return { checkbox : CKEDITOR.TRISTATE_OFF };
-
- if ( type == 'radio' )
- return { radio : CKEDITOR.TRISTATE_OFF };
-
- if ( type == 'image' )
- return { imagebutton : CKEDITOR.TRISTATE_OFF };
+ switch( element.getAttribute( 'type' ) )
+ {
+ case 'button' :
+ case 'submit' :
+ case 'reset' :
+ return { button : CKEDITOR.TRISTATE_OFF };
+
+ case 'checkbox' :
+ return { checkbox : CKEDITOR.TRISTATE_OFF };
+
+ case 'radio' :
+ return { radio : CKEDITOR.TRISTATE_OFF };
+
+ case 'image' :
+ return { imagebutton : CKEDITOR.TRISTATE_OFF };
+
+ default :
+ return { textfield : CKEDITOR.TRISTATE_OFF };
+ }
}
@@ -188,12 +191,6 @@
else if ( element.is( 'input' ) )
{
- var type = element.getAttribute( 'type' );
-
- switch ( type )
- {
- case 'text' :
- case 'password' :
- evt.data.dialog = 'textfield';
- break;
+ switch ( element.getAttribute( 'type' ) )
+ {
case 'button' :
case 'submit' :
@@ -209,4 +206,7 @@
case 'image' :
evt.data.dialog = 'imagebutton';
+ break;
+ default :
+ evt.data.dialog = 'textfield';
break;
}
@@ -232,4 +232,7 @@
var attrs = input.attributes,
type = attrs.type;
+ // Old IEs don't provide type for Text inputs #5522
+ if ( !type )
+ attrs.type = 'text';
if ( type == 'checkbox' || type == 'radio' )
attrs.value == 'on' && delete attrs.value;