Argument for jQuery Ticket 6696

With find.e.g. it works just right

by jitter

HTML

<ul id="foo">
    <li>a1<ul><li>a11</li><li>a12</li></ul></li>
    <li>a2</li>
    <li>a3</li>
</ul>
<ul>
    <li>b1</li>
    <li>b2</li>
    <li>b3</li>
</ul>

CSS

#foo li {
    background-color: red;
}

JavaScript

$("#foo").find("> li").css("backgroundColor", "yellow");

//Why shouldn't this work?
$("#foo").delegate("> li", "click", function(e) {
    alert($(this).text());
});