How to include context elements in search space when using jQuery( selector [, context ] )
<p>I have an existing collection of elements that I want to change if they match a given selector.  I want to do the same to these items' descendants (recursively).  This seems like the function of <code>jQuery( selector [, context ] )</code>.  However, the resulting set does not include the parent elements.  I want to query them too.  Can this be done with one command?  </p>

<p>for example, </p>

<pre><code>var els = $('&lt;div foo="bar"&gt;')
$("[foo]", els ); // finds nothing
els.filter("[foo]"); // finds div 
</code></pre>

<p>But filter does not search descendants, so </p>

<pre><code>var els = $('&lt;div foo="bar"&gt;&lt;span foo="foobar"&gt;&lt;/div&gt;')
$("[foo]", els ); // finds span
els.filter("[foo]"); // finds div
</code></pre>

<p>What's the best way to find both the span and the div?  Use both commands?  Is there a single line command to find both?  Better than this anyway?</p>

<pre><code>var els = $('&lt;div foo="bar"&gt;&lt;span foo="foobar"&gt;&lt;/div&gt;')
var selection = $("[foo]", els ); // finds inner elements
selection = selection.add(els.filter("[foo]")); // then adds on parents that match the selector
</code></pre>
