Changeset 6567 for CKEditor/trunk


Ignore:
Timestamp:
03/18/2011 08:19:54 AM (4 years ago)
Author:
garry.yao
Message:

#6596: document::createElement receives no attributes as arguments in IE9.

Location:
CKEditor/trunk/_source/plugins
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/_source/plugins/forms/dialogs/hiddenfield.js

    r6348 r6567  
    3131                                value = this.getValueOf( 'info', 'value' ),
    3232                                editor = this.getParentEditor(),
    33                                 element = CKEDITOR.env.ie ? editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) : editor.document.createElement( 'input' );
     33                                element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ?
     34                                        editor.document.createElement( '<input name="' + CKEDITOR.tools.htmlEncode( name ) + '">' )
     35                                        : editor.document.createElement( 'input' );
    3436
    3537                        element.setAttribute( 'type', 'hidden' );
  • CKEditor/trunk/_source/plugins/link/dialogs/anchor.js

    r6348 r6567  
    2727                        // Always create a new anchor, because of IE BUG.
    2828                        var name = this.getValueOf( 'info', 'txtName' ),
    29                                 element = CKEDITOR.env.ie ?
     29                                element = CKEDITOR.env.ie && !( CKEDITOR.document.$.documentMode >= 8 ) ?
    3030                                editor.document.createElement( '<a name="' + CKEDITOR.tools.htmlEncode( name ) + '">' ) :
    3131                                editor.document.createElement( 'a' );
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy