Changeset 1088


Ignore:
Timestamp:
11/16/2007 10:49:36 AM (7 years 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.

File:
1 edited

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. 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy