What does $('<div>').parent() return?
<p>I'm working on a jQuery widget that attaches events to the widget's parent, but I'm unable to tell if it has a parent.</p>

<p>For example;</p>

<pre><code>var x = $('&lt;div&gt;');
x.mywidget();

........... in mywidget
_create : function () {
    var y = this.element.parent() === undefined ? this.element : this.element.parent();
    y.bind(....);
}
</code></pre>

<p>I need to check if the widget has been added to the DOM before I do the bind statement. If it has not been added to the DOM, then I'll just bind <code>this.element.bind(....)</code> instead.</p>

<p>The problem is that <code>$('&lt;div&gt;').parent()</code> returns a jQuery object! I was expecting that it would return <code>undefined</code>.</p>

<p>So I'm wondering what parent could it be returning when it shouldn't have a parent?</p>
