Ticket #3089: 3089.patch

File 3089.patch, 1.2 KB (added by Garry Yao, 15 years ago)
  • _source/core/dom/element.js

     
    707707                 * alert( <b>element.hasAttributes()</b> );  "false"
    708708                 */
    709709                hasAttributes :
    710                         CKEDITOR.env.ie ?
     710                        CKEDITOR.env.ie && CKEDITOR.env.ie8 ?
    711711                                function()
    712712                                {
    713713                                        var attributes = this.$.attributes;
     
    842842                                return this;
    843843                        };
    844844
    845                         if ( CKEDITOR.env.ie )
     845                        if ( CKEDITOR.env.ie && !CKEDITOR.env.ie8 )
    846846                        {
    847847                                return function( name, value )
    848848                                {
     
    904904                                this.$.removeAttribute( name );
    905905                        };
    906906
    907                         if ( CKEDITOR.env.ie )
     907                        if ( CKEDITOR.env.ie && !CKEDITOR.env.ie8  )
    908908                        {
    909909                                return function( name )
    910910                                {
  • _source/core/env.js

     
    9393                         *     alert( "I'm on IE6 or quirks mode!" );
    9494                         */
    9595                        env.ie6Compat = ( version < 7 || document.compatMode == 'BackCompat' );
     96                       
     97                        /**
     98                         *  Indicate IE8.
     99                         */
     100                        env.ie8 = version == 8;
    96101                }
    97102
    98103                // Gecko.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy