#9365 closed bug (invalid)
Jquery 1.6.1 min issue in IE7/IE8
Reported by: | 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)}
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → core |
---|---|
Priority: | undecided → low |
Resolution: | → invalid |
Status: | new → closed |
comment:2 Changed 12 years ago by
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.
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/