Ticket #3862: 3862.patch

File 3862.patch, 1.9 KB (added by Garry Yao, 15 years ago)
  • _source/tests/core/htmlparser/fragment.html

     
    175175                                                '<div><b><font><span>A</span></font></b></div><div>X</div>' );
    176176                },
    177177
     178                test_ticket_3862 : function()
     179                {
     180                        testParser(     '<p><span><a href="#"><b>link</a></b>text</span></p>',
     181                                                '<p><span><a href="#"><b>link</b></a>text</span></p>' );
     182                },
     183
    178184                name : document.title
    179185        };
    180186})() );
  • _source/core/htmlparser/fragment.js

     
    283283                                if ( candidate == currentNode )
    284284                                        currentNode = currentNode.parent;
    285285                        }
     286                        // The tag is not actually closing anything, thus we need invalidate
     287                        // the pending elements.(#3862)
     288                        else
     289                        {
     290                                pendingInline.splice( 0, index );
     291                                index = 0;
     292                        }
    286293
    287294                        // Check if there is any pending tag to be closed.
    288295                        for ( ; index < pendingInline.length ; index++ )
  • CHANGES.html

     
    8686                <li><a href="http://dev.fckeditor.net/ticket/3812">#3812</a> : Fixed an issue in which the editor
    8787                        may show up empty or uneditable in IE7, 8 and Firefox 3.</li>
    8888                <li><a href="http://dev.fckeditor.net/ticket/3825">#3825</a> : Fixed JS error when opening spellingcheck.</li>
     89                <li><a href="http://dev.fckeditor.net/ticket/3825">#3862</a> : Fixed html parser infinite loop on certain malformed
     90                        source code.</li>
    8991        </ul>
    9092        <h3>
    9193                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy