Skip to main content

Bug Tracker

Side navigation

#10790 closed bug (duplicate)

Opened November 15, 2011 10:42AM UTC

Closed November 16, 2011 02:10AM UTC

Last modified March 09, 2012 10:40PM UTC

Error loading jQuery 1.7 with Modernizr in IE8

Reported by: Issy Owned by: Issy
Priority: high Milestone: None
Component: support Version: 1.7
Keywords: Cc:
Blocked by: Blocking:
Description

I get (usually) an error when loading jQuery 1.7 with Modernizr in IE8:

Message: 'null' ist Null oder kein Objekt ('null' is null or no object)

Line: 1658

Character: 2

Code: 0

URI: http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.js

My Modernizr example for jquery:

Modernizr.load([
	{
		load: '//ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.js',
		complete: function () {
			if ( !window.jQuery ) {
				Modernizr.load('/js/libs/jquery-1.7.js');
			}
		}
	}
]);

jQuery 1.6.4 is loading without any error.

Attachments (0)
Change History (8)

Changed November 15, 2011 02:54PM UTC by timmywil comment:1

component: unfiledcore
owner: → Issy
priority: undecidedlow
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.

Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/ Open the link and click to "Fork" (in the top menu) to get started.

Changed November 15, 2011 10:15PM UTC by Issy comment:2

status: pendingnew

Sorry, I can't reproduce it in jsFiddle. Anyway, it crashes after the block "Run fixed position tests at doc ready to avoid a crashrelated to the invisible body in IE8" at line 1658:

testElement.innerHTML = "";

5 lines before (line 1653) is it set to null:

testElement = container = null;

This is exactly my error message on IE7/IE8: ''''null' is null or no object'''.

This looks to me a bit confusing.

Changed November 15, 2011 10:23PM UTC by Issy comment:3

Ok, I take a look at http://code.jquery.com/jquery-git.js and it seems to be corrected.

Changed November 16, 2011 02:10AM UTC by timmywil comment:4

component: coresupport
priority: lowhigh
resolution: → duplicate
status: newclosed

Changed November 16, 2011 02:10AM UTC by timmywil comment:5

Duplicate of #10737.

Changed November 25, 2011 04:31PM UTC by anonymous comment:6

I have the exact same error under IE8 (without Modernizr) but with jQuery loaded in a iframe if this can help.

Changed November 25, 2011 04:36PM UTC by ngryman comment:7

Same issue. I use a home made script loader, perhaps this issue comes when jQuery is loaded dynamically by appending a new script tag...

Changed March 06, 2012 11:21AM UTC by anonymous comment:8

I've had exactly the same thing using yepnope and IE7/IE8. I'm unsure as to what causes it. Updating jQuery to 1.7.1 fixed this error. Nothing obvious in the 1.7.1 changelog.