Ticket #4719: 4719.patch

File 4719.patch, 780 bytes (added by Minh Nguyen, 14 years ago)

This bug happen in IE when we have quote character in value of attribute.

  • _source/plugins/htmldataprocessor/plugin.js

     
    402402                        // Add fake character to workaround IE comments bug. (#3801)
    403403                        div.setHtml( 'a' + data );
    404404                        data = div.getHtml().substr( 1 );
    405 
     405                       
     406                        // Fixing have quote charactor in attribute value #4719;
     407                        data = data.replace( /([^'"\s]+\s*=\s*)'([^']+)'/gi ,
     408                                function( match, name, value )
     409                                {
     410                                        return name + "'" +  value.replace( /"/g, '&quote;' ) + "'";
     411                                }
     412                        );
    406413                        // Unprotect "some" of the protected elements at this point.
    407414                        data = unprotectElementNames( data );
    408415
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy