Changeset 297

Show
Ignore:
Timestamp:
2007-05-09 23:07:15 (3 years ago)
Author:
alfonsoml
Message:

Fix for #324, IE doesn't parse elements to a true DOM tree so a child might not have the parent that you expect!

Location:
FCKeditor/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fckdomtools.js

    r256 r297  
    7878                                        if ( eChildNode.nodeName.toUpperCase() == 'BR' && ( ignoreEndBRs || eChildNode.getAttribute( 'type', 2 ) == '_moz' ) ) 
    7979                                        { 
    80                                                 node.removeChild( eChildNode ) ; 
     80                                                // Use "eChildNode.parentNode" instead of "node" to avoid IE bug (#324). 
     81                                                eChildNode.parentNode.removeChild( eChildNode ) ; 
    8182                                                continue ; 
    8283                                        } 
  • FCKeditor/trunk/_whatsnew.html

    r296 r297  
    7878                <li>[<a target="_blank" href="https://sourceforge.net/tracker/?func=detail&aid=1518766&group_id=75348&atid=543653">SF 
    7979                        BUG-1518766</a>] Mozilla 1.7.13 wasn't recognized properly as an old Gecko engine.</li> 
     80                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/324">#324</a>] Improperly nested 
     81                        tags could lead to a crash in IE.</li> 
    8082        </ul> 
    8183        <h3>