Bug Tracker

Ticket #9365 (closed bug: invalid)

Opened 4 years ago

Last modified 3 years ago

Jquery 1.6.1 min issue in IE7/IE8

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

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)}

Change History

comment:1 Changed 4 years ago by timmywil

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to core

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/

comment:2 Changed 4 years ago by anonymous

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.

comment:3 Changed 4 years ago by anonymous

I got the same problem here!

comment:4 Changed 3 years ago by anonymous

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

Note: See TracTickets for help on using tickets.