:first selector regression

Adjacent sibling selectors prefixed by :first Sizzle selectors do not seem to work since jQuery 1.4.3. This regession does not affect selectors prefixed by :first-child.

by rwaldron

HTML

<ul>
    <li class="tab"><a href="#foo">foo</a></li>
    <li class="tab"><a href="#bar">bar</a></li>
    <li class="tab"><a href="#nao">nao</a></li>
</ul>

CSS

p { margin-top: 1em }

JavaScript

function collectedText($elem) {
    var collected = [];
    $elem.each(function() {
        collected.push($(this).text());
    });
    return collected.join(', ');
}

console.log(
    $('.tab').find('a:first').length === 3, 
    $('.tab').find('a').filter(':first').length === 1, 
    $('.tab a:first').length === 1
)