`$('<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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to