sorry, I meant $('html').parent().parent().size() and $('body').parent().parent().size()
I'd guess body is 0 and html would croak... On 5/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
On May 8, 9:58 pm, "Ⓙⓐⓚⓔ" <[EMAIL PROTECTED]> wrote: > hmm, what do you get for $('body') or $('html') ?? $('html').parent() = [ Document ] $('body').parent() = [ html ] Nothing unusual here. For now, I've opted for the following: var container = $(settings.container); if (!container.parent().parent().size()) { // settings.container must not be an existing page element, // so insert it into the DOM ... }
-- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ