This was fixed in jQuery 1.3. --John
On 1/22/09, Már Örlygsson <[email protected]> wrote: > > `$('<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 > > > > -- --John --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
