Ticket #1707: 1707.patch

File 1707.patch, 1.0 kB (added by martinkou, 5 months ago)

Proposed patch for fixing #1707.

  • editor/_source/classes/fckdomrangeiterator.js

     
    110110                        { 
    111111                                var nodeName = currentNode.nodeName.toLowerCase() ; 
    112112 
     113                                // Fix for #1707: The DOM prefix should not be ignored in IE since 
     114                                // a tag name of a different namespace is not the same as the same 
     115                                // tag name of the HTML namespace. 
     116                                if ( FCKBrowserInfo.IsIE && currentNode.scopeName != 'HTML' ) 
     117                                        nodeName = currentNode.scopeName + ':' + nodeName ; 
     118 
    113119                                if ( boundarySet[ nodeName ] ) 
    114120                                { 
    115121                                        // <br> boundaries must be part of the range. It will 
     
    271277 
    272278                                        removePreviousBr = !splitInfo.WasStartOfBlock ; 
    273279                                        removeLastBr = !splitInfo.WasEndOfBlock ; 
    274                                         FCKDebug.Output( 'removePreviousBr=' + removePreviousBr + ',removeLastBr=' + removeLastBr ) ; 
    275280 
    276281                                        // Insert the new block into the DOM. 
    277282                                        range.InsertNode( block ) ;