Select nodes with a certain child hierarchy
<p>I want to write a jQuery selector which matches a set of div nodes (the bold line below):</p>

<ul>
<li><strong>all <code>div</code> nodes where class = <code>.link</code></strong>
<ul>
<li>who contains a <code>div</code> node where class = <code>.entry</code>
<ul>
<li>who contains a <code>p</code> node where class = <code>.title</code>
<ul>
<li>who contains an <code>a</code> node where href starts with <code>http://i.imgur.com/</code></li>
</ul></li>
</ul></li>
</ul></li>
</ul>

<p>(Click image below for full size. To test stuff out, visit <a href="http://reddit.com" rel="nofollow">http://reddit.com</a> and use Firebug (jQuery is loaded)):
<a href="http://i.stack.imgur.com/FDD65.png" rel="nofollow"><img src="http://i.stack.imgur.com/uOQUC.png" alt="Firebug screenshot containing part of Reddits DOM"></a></p>
