Ticket #3477: 3477.patch

File 3477.patch, 1.0 KB (added by Garry Yao, 15 years ago)
  • _source/core/dom/range.js

     
    257257                        endNode.remove();
    258258        };
    259259
    260         var inlineChildReqElements = { abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,'var':1 };
    261260
    262261        // Creates the appropriate node evaluator for the dom walker used inside
    263262        // check(Start|End)OfBlock.
     
    277276                        {
    278277                                // If there are non-empty inline elements (e.g. <img />), then we're not
    279278                                // at the start.
    280                                 if ( !inlineChildReqElements[ node.getName() ] )
     279                                if ( CKEDITOR.dtd.$empty[ node.getName() ] )
    281280                                {
    282281                                        // If we're working at the end-of-block, forgive the first <br />.
    283282                                        if ( !isStart && node.getName() == 'br' && !hadBr )
     
    285284                                        else
    286285                                                return false;
    287286                                }
     287                                else
     288                                        return false;
    288289                        }
    289290                };
    290291        }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy