I'm running through the jQuery Selector Lab Page from Bear's
jQuery In Action, 2nd Ed.. (Source available here:
http://www.manning.com/bibeault2/jqia2.source.zip ) Basically, the right half of the page is a sample web page, and the left half lets you type in jQuery selectors that draw red boxes around the content they match in the right half.
The sample page contains an unordered list, with two list items, each of which itself contains an unordered list with multiple items. So something like:
When I type in a selector "li li", I get all six fruits and vegetables highlighted as I expected, but when I type in "li li:first", I only get "Apple". The selector "li li:nth-child(1)" though gives me both "Apple" and "Asparagus". Is this a jQuery bug, or am I thinking of it wrong?