Wierdness with jQuery's parent and tables
<p>I am adding a place holder div in my code so it can later be replaced by some html. This is for a little templating engine I am writing (something like handlebars.js) so I don't have any control over what the parent element is.</p>

<p>Something like this:</p>

<pre><code>&lt;div class="container"&gt;
    &lt;ul&gt;
        &lt;div id="4FEA2092330"&gt;&lt;/div&gt;
    &lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>if I get the parent of the placeholder div I get the ul which is great.</p>

<p>However if the placeholder is inside a table like this:</p>

<pre><code>&lt;div class="container"&gt;
    &lt;table&gt;
        &lt;div id="4FEA2092330"&gt;&lt;/div&gt;
    &lt;/table&gt;
&lt;/div&gt;
</code></pre>

<p>The parent of the placeholder div is the container div not the table.</p>

<p>Further testing shows that if I use a tr in the table (instead of the div) the parent routine returns the table.</p>

<p>Any ideas why that would happen and how I might be able to prevent this.</p>
