Ticket #4719: 4719_3.patch
File 4719_3.patch, 1.8 KB (added by , 14 years ago) |
---|
-
_source/core/htmlparser/basicwriter.js
60 60 */ 61 61 attribute : function( attName, attValue ) 62 62 { 63 // Browsers don't always escape quote in attribute values. (#4683)64 attValue = attValue.replace( /"/g, '"' )63 if ( CKEDITOR.env.ie ) 64 attValue = CKEDITOR.tools.htmlEncode( attValue ); 65 65 66 66 this._.output.push( ' ', attName, '="', attValue, '"' ); 67 67 }, -
_source/core/tools.js
316 316 return fix2( text ).replace( / /g, ' ' ); 317 317 } : 318 318 fix2; 319 320 var fix4 = ( standard( '"' ) == '"') ? 321 function( text ) 322 { 323 // Browsers don't always escape quote in attribute values #4683, #4719. 324 return fix3( text ).replace(/"/g, '"'); 325 } : 326 fix3; 327 328 this.htmlEncode = fix4; 319 329 320 this.htmlEncode = fix3;321 322 330 return this.htmlEncode( text ); 323 331 }, 324 332 -
_source/plugins/htmlwriter/plugin.js
173 173 { 174 174 if ( this.forceSimpleAmpersand ) 175 175 attValue = attValue.replace( /&/, '&' ); 176 if ( CKEDITOR.env.ie ) 177 attValue = CKEDITOR.tools.htmlEncode( attValue ); 176 178 177 // Browsers don't always escape quote in attribute values. (#4683)178 attValue = attValue.replace( /"/g, '"' )179 180 179 this._.output.push( ' ', attName, '="', attValue, '"' ); 181 180 }, 182 181