Ticket #2977: 2977.patch

File 2977.patch, 663 bytes (added by Martin Kou, 15 years ago)
  • _source/core/dom/domwalker.js

     
    228228                        {
    229229                                if ( from.isBlockBoundary( customNodeNames ) )
    230230                                {
     231                                        /*
     232                                         * Special case for #2977:
     233                                         * If we've come from a <br /> node at the end of a block, then we haven't
     234                                         * crossed any block boundary yet.
     235                                         */
     236                                        if ( from.getName() == 'br' && from.getParent().isBlockBoundary() && from.equals( from.getParent().getLast() ) )
     237                                                return;
     238
    231239                                        evt.stop();
    232240                                        this.stop();
    233241                                }
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy