Bug? Newly created elements have a parent <div>

Bug? Newly created elements have a parent <div>


`$('<p />').parent()` returns the <div> wrapper for the innerHTML
injection when creating the paragraph element.
This makes it impossible to distinguish between a newly created
element and an element that is intentionally wrapped in a <div>.
Smells like a bug.
Can this be fixed without breaking lots of other functionality?
possible fix would be to add something like:
while (div.lastChild) { div.removeChild(div.lastChild); }
*after* the line
elem = jQuery.makeArray( div.childNodes );
within `$.clean()`.
--
Már Örlygsson