Skip to main content

Bug Tracker

Side navigation

#9365 closed bug (invalid)

Opened May 20, 2011 01:49PM UTC

Closed May 24, 2011 01:27AM UTC

Last modified March 14, 2012 06:32AM UTC

Jquery 1.6.1 min issue in IE7/IE8

Reported by: kebabapps@gmail.com Owned by:
Priority: low Milestone: 1.next
Component: core Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:
Description

The minified version of JQuery (such as the one located here: https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js ) causes an error in IE7 and IE8 compatability modes. IE9 is fine. Another machine, possibly with a different set of DLLs (e.g. jscript.dll) doesn't have the issue. Swapping jscript.dll doesn't fix it (so there are possibly other IE-related dlls that are also different).

Only the minified version is affected. Changing to use the non-minified version of 1.6 does not error.

A simple test page is:

<html>

<head>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>

</head>

<body>

<script>

$("body").css("background","red");

</script>

</body>

</html>

IE's developer tools say:

Object doesn't support this property or method, line 16 character 18206. The debugger stops on a statement that says:

,b.insertBefore(l,b.firstChild),

at this point, variable b is a function that says:

function b(){j.noCloneEvent=!1,a.detachEvent("onclick",b)}

Attachments (0)
Change History (4)

Changed May 24, 2011 01:27AM UTC by timmywil comment:1

component: unfiledcore
priority: undecidedlow
resolution: → invalid
status: newclosed

Thanks for taking the time to contribute to the jQuery project!

This is working fine. You probably need a document ready.

http://jsfiddle.net/timmywil/h3vvb/1/

Changed May 24, 2011 08:39AM UTC by anonymous comment:2

No, it was a problem with the actual 1.6.1 minified js BEFORE any jquery commands were executed on the page.

I noticed I was still running IE9 beta. Upgrading to the full version has fixed the problem, so anyone else that ever runs into a similar issue should just update their IE9.

Changed May 27, 2011 08:20AM UTC by anonymous comment:3

I got the same problem here!

Changed June 12, 2011 11:30PM UTC by anonymous comment:4

I got the same problem on development. not-minified works fine.