Changeset 1051


Ignore:
Timestamp:
10/30/07 14:04:36 (7 years ago)
Author:
fredck
Message:

Fixed #1419 : The FCKDomTools.GetNextSourceElement was wrongly ignoring child elements of ignored elements. For example, if the OL element was to be ignored, their LI children was also ignored, which is wrong.

File:
1 edited

Legend:

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

    r1048 r1051  
    245245        GetNextSourceElement : function( currentNode, ignoreSpaceTextOnly, stopSearchElements, ignoreElements ) 
    246246        { 
    247                 while( ( currentNode = this.GetNextSourceNode( currentNode, true ) ) )  // Only one "=". 
     247                while( ( currentNode = this.GetNextSourceNode( currentNode, false ) ) ) // Only one "=". 
    248248                { 
    249249                        if ( currentNode.nodeType == 1 ) 
     
    252252                                        break ; 
    253253 
    254                                 if ( !ignoreElements || !currentNode.nodeName.IEquals( ignoreElements ) ) 
    255                                         return currentNode ; 
     254                                if ( ignoreElements && currentNode.nodeName.IEquals( ignoreElements ) ) 
     255                                        return this.GetNextSourceElement( currentNode, ignoreSpaceTextOnly, stopSearchElements, ignoreElements ) ; 
     256                                 
     257                                return currentNode ; 
    256258                        } 
    257259                        else if ( ignoreSpaceTextOnly && currentNode.nodeType == 3 && currentNode.nodeValue.RTrim().length > 0 ) 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy