find() and jQuery() not finding elements directly under dom with page from $() constructor

find() and jQuery() not finding elements directly under dom with page from $() constructor

Hi -- I'm writing some tests in jspec using jquery, and have come across a problem.

This is that when I load the DOM into a var called $page, searches on that $page only return items nested more than one level deep under the body tag.

To illustrate, here is my test code (that is failing): http://gist.github.com/285838

And here is the markup it *should* be passing against: http://gist.github.com/285847

Has anyone else come across this & found a fix or a decent workaround? I'm currently id-ing child elements of the root (to body) elements I want to select & then calling parent() on these, which is far from ideal.

Can anyone please advise?

Cheers,

   Doug.