Ticket #8783: 8783.patch

File 8783.patch, 1.1 KB (added by Piotrek Koszuliński, 12 years ago)

Proposed fix for all 3 set/get/remove(Attribute) methods

  • _source/core/dom/element.js

     
    466466                                                case 'style':
    467467                                                        // IE does not return inline styles via getAttribute(). See #2947.
    468468                                                        return this.$.style.cssText;
     469
     470                                                case 'contenteditable':
     471                                                case 'contentEditable':
     472                                                        return this.$.attributes.getNamedItem( 'contentEditable' ).specified ?
     473                                                                        this.$.getAttribute( 'contentEditable' ) : null;
    469474                                        }
    470475
    471476                                        return standard.call( this, name );
     
    10681073                                                this.$.tabIndex = value;
    10691074                                        else if ( name == 'checked' )
    10701075                                                this.$.checked = value;
     1076                                        else if ( name == 'contenteditable' )
     1077                                                standard.call( this, 'contentEditable', value );
    10711078                                        else
    10721079                                                standard.apply( this, arguments );
    10731080                                        return this;
     
    11421149                                                name = 'className';
    11431150                                        else if ( name == 'tabindex' )
    11441151                                                name = 'tabIndex';
     1152                                        else if ( name == 'contenteditable' )
     1153                                                name = 'contentEditable';
    11451154                                        standard.call( this, name );
    11461155                                };
    11471156                        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy