[jQuery] How do child selectors work in jQuery?

[jQuery] How do child selectors work in jQuery?


Hi,
See <http://lab.jeroencoumans.nl/jquery/child-selector.html>
It's my understanding that child selectors only select direct children
of an element. Thus, $('#test > li') should only select direct
descendent <li> elements of #test, not nested <li>'s. This is
confirmed with a simple CSS rule. So how come, when I attach a click
event to a direct child, it seems to attach itself to all
descendents?
Regards, Jeroen