JQuery beginner: :has for direct descendants only
<p>Assuming a tree structure like the following:
(Ugly legacy layout, sorry)</p>

<pre><code>&lt;tr&gt;                          (1) dont want to select this one  
   &lt;td&gt;
       &lt;table&gt;
           &lt;tr&gt;               (2) not a "special" td, dont select       
               &lt;td.normal&gt;        
           &lt;tr&gt;                (3) this is what I want to select
               &lt;td.special&gt;       
           &lt;tr&gt;
               &lt;td.normal&gt;
</code></pre>

<p>I want to select the tr which has a td with class special as direct descendant,
i.e. only (2), not (3) [its td is not special], and also not (1) [special td is not a direct descendant but a "grandkid"]</p>

<p>I tried </p>

<pre><code>$("tr:has(td.special)");
</code></pre>

<p>but that gives me (1) and (2), because :has means "has somewhere among all my descendants".</p>

<p>What I need is something like :has, but meaning "has among my direct children".</p>

<p>Alternatively, a way to transverse upwards, like "select only the parent of the currently selected element".</p>

<p>Sorry for the simple question, but I can't seem to find it anywhere in the API docs.</p>
