Hi, Thank you all for your answers !
The problem is, that nobody else got this error, just me. And the other problem is that neither Firebug or WebDeveloper tell me of errors (they both detect different errors sometimes). IE6 bugs only on this line, and I tried to comment the inclusion of the two jquery plugins I am using, with no success. The problem does not seem to occur in IE7. I reverted all my changes and it still does not work... It's really confusing ! I will try today, but if someone has an idea, or got this error and found out why, I would be glad to hear because I really tried a lot of things to make it work... Thanks, Lideln On 7 juin, 05:47, Ricardo <ricardob...@gmail.com> wrote: > That's a check for proper W3C box model support, as you can see it > runs on document.ready (jQuery(function...), so it's impossible that > the document body doesn't exist yet. Kranti is right, it's likely a > previous error that's causing it. > > On Jun 5, 9:07 am, Lideln <lid...@gmail.com> wrote: > > > Hi ! > > > I have an issue... What is weird, is that my colleagues don't have > > it ! (and I did not have it this morning) > > It happens only on IE6... Everything is fine under Firefox (3), Safari > > (4 beta) and Opera (9.64). > > > When logging in into my application, IE tells me "document.body is > > null or is not an object". > > I have the IE6 debugger installed, and it points me toward : (I used > > the "normal" jquery version to show the plain text code) > > > [code] > > // Figure out if the W3C box model works as expected > > // document.body must exist before we can do this > > jQuery(function(){ > > var div = document.createElement("div"); > > div.style.width = div.style.paddingLeft = "1px"; > > > document.body.appendChild( div ); <--- error happens here > > jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2; > > document.body.removeChild( div ).style.display = 'none';}); > > > [/code] > > > How can this be possible ? > > > Thank you for any possible lead that could help me get rid of this > > error... > > > Kind regards,