Ticket #5293: 5293_3.patch
File 5293_3.patch, 781 bytes (added by , 13 years ago) |
---|
-
_source/core/htmlparser/fragment.js
108 108 } 109 109 } 110 110 111 function sendPendingBRs( )111 function sendPendingBRs( brsToIgnore ) 112 112 { 113 while ( pendingBRs.length )113 while ( pendingBRs.length - ( brsToIgnore || 0 ) > 0 ) 114 114 currentNode.add( pendingBRs.shift() ); 115 115 } 116 116 … … 392 392 // Parse it. 393 393 parser.parse( fragmentHtml ); 394 394 395 sendPendingBRs(); 395 // Send all pending BRs except one, which we consider a unwanted bogus. (#5293) 396 sendPendingBRs( !CKEDITOR.env.ie && 1 ); 396 397 397 398 // Close all pending nodes. 398 399 while ( currentNode.type )