Ticket #3801: 3801.patch
File 3801.patch, 1.4 KB (added by , 15 years ago) |
---|
-
CHANGES.html
78 78 <li><a href="http://dev.fckeditor.net/ticket/3829">#3829</a> : Fixed remove empty link on output data.</li> 79 79 <li><a href="http://dev.fckeditor.net/ticket/3730">#3730</a> : Indent is performing on the whole 80 80 block instead of selected lines in enterMode = BR.</li> 81 <li><a href="http://dev.fckeditor.net/ticket/3801">#3801</a> : Comments at the start of the document was lost in IE.</li> 81 82 </ul> 82 83 <h3> 83 84 CKEditor 3.0 RC</h3> -
_source/plugins/htmldataprocessor/plugin.js
311 311 // Call the browser to help us fixing a possibly invalid HTML 312 312 // structure. 313 313 var div = document.createElement( 'div' ); 314 div.innerHTML = data; 315 data = div.innerHTML; 314 // #3801 IE: Comments at the start of the document get lost 315 if ( CKEDITOR.env.ie && /^<!--/.test( data ) ) 316 { 317 div.innerHTML = 'a' + data; 318 data = div.innerHTML.substr( 1 ); 319 } 320 else 321 { 322 div.innerHTML = data; 323 data = div.innerHTML; 324 } 316 325 317 326 if ( CKEDITOR.env.ie ) 318 327 data = unprotectEncodedTags( data );