Bug Tracker

Modify

Ticket #12099 (closed bug: invalid)

Opened 10 months ago

Last modified 10 months ago

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:
Blocking: Blocked by:

Description

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

comment:1 Changed 10 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.