Testcase for jQuert Ticket 4798

Bug with PSEUDO selector

by jitter

HTML

<table class="toc"><tbody><tr><td><ul>
    <li id="one-A"></li>
    <li id="two-A"></li>
    <li id="three-A"></li>
</ul></td></tr></tbody></table>

JavaScript

alert($('.toc * li').length);
alert($('.toc:last * li').length);
alert($('.toc:first * li').length);
alert($('.toc:eq(0) * li').length);