Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jquery 1.6.2 Crashes IE8 Tabs

Hello fellow developers,

I am a little stumped on this one as I have been using JQuery 1.6.2 with no issues until three days ago. (There was a service pack update at some point around this time)

Anyway the issue is as follows:

I am coding in HTML5 and have been for some time now, no problems there, but three days ago I began to update some of the older websites. This particular website (and some others) required an update to the JQuery version so I decided to call on the hosted 1.6.2 version from Google.

As soon as I did this my website's began to crash my IE8 tabs. On the website I am working on, my cycle plugin no longer works and for some strange reason my UL list now goes white when I hover over the links!

I started pulling out my hair and thought maybe IE8 was have compatibility issues with HTML5, so I went back and changed all the coding, getting rid of HTML5 elements and then even going back to xhtml doctype. It still continued.

I then went through the plugin code, trying to find others who had experienced the same problems. Nothing wrong there.

Eventually I took out the Jquery and the site went back to normal and didn't crash the tabs!

I have since replaced the 1.6.2 version with an older version I have laying around 1.4.3 and that seems to work fine!?

Is anyone else having issues with 1.6.2 and IE8 - Like always in every other browser I can get my hands on the site performs perfectly with whatever version of JQuery I call upon.

Thanks in advance.

Kind Regards

Richard

like image 207
Richard Avatar asked Jul 26 '11 09:07

Richard


3 Answers

The jQuery developers have fixed the issue. The associated bug item is #9823 and the commit is 5c4a9cc001fcd803efa65ff95571c72cbdafbe69. Works for me.

like image 57
Jorrit Schippers Avatar answered Oct 30 '22 22:10

Jorrit Schippers


The Solution

It is an issue with jQuery version 1.6.2 (which was the latest version at time of development). Luckily they fixed the issue, so the fix on your end is simple… Update to the latest version of jQuery.

like image 41
Ricardo Pratti Avatar answered Oct 31 '22 00:10

Ricardo Pratti


I had a very similar issue with

  • jQuery 1.6.2
  • a facebook like button
  • and a background image on the body element

As jjmontes stated above, removing / changing any of the above will solve the issue. Changing the IE mode to a compatibility mode did not resolve the issue, probably easiest way of avoiding this problem is to use a newer version of jQuery. Demo / test case (since the above is not online anymore) can be seen here.

like image 41
michael Avatar answered Oct 31 '22 00:10

michael