Bug Tracker

Opened 9 years ago

Closed 9 years ago

#12099 closed bug (invalid)

document.body is null or not a object

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:


Line 3205: jquery-1.3.2.js throws 'document.body is null' for following usecase

Load site which has jquery-1.3.2.js in IE or FireFox Before loading previous site, try to load any other site say google.com. document.body is null error appears in console Google.com loads fine This issue is not show stopper but unnecessary alert is appearing which is giving a wrong impression to user.

jQuery(function() {

var div = document.createElement("div"); div.style.width = div.style.paddingLeft = "1px";

document.body.appendChild( div );

jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;

Line 3205: document.body.removeChild( div ).style.display = 'none';

div = null;


Change History (1)

comment:1 Changed 9 years ago by dmethvin

Resolution: invalid
Status: newclosed

jQuery 1.3.2 was released in February 2009 and is no longer supported. The current supported release of jQuery is 1.7.2.

Note: See TracTickets for help on using tickets.