Changeset 1088

Show
Ignore:
Timestamp:
2007-11-16 10:49:36 (11 months ago)
Author:
martinkou
Message:

The bogus BR deletion logic in FCKXHtml._AppendChildNodes() isn't really redundant since it is possible for bogus BR nodes to appear in the middle of a block element.

Files:
1 modified

Legend:

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

    r1085 r1088  
    198198                                return FCKXHtml._AppendNode( xmlNode, FCK.GetRealElement( htmlNode ) ) ; 
    199199 
     200                        // Ignore bogus BR nodes in the DOM. 
     201                        if ( FCKBrowserInfo.IsGecko && 
     202                                        htmlNode.nextSibling && 
     203                                        ( htmlNode.hasAttribute('_moz_editor_bogus_node') || htmlNode.getAttribute( 'type' ) == '_moz' ) ) 
     204                                return false ; 
     205 
    200206                        // This is for elements that are instrumental to FCKeditor and 
    201207                        // must be removed from the final HTML.