I have just upgraded to IE9 RC (which i must add isnt too bad an attempt by microsoft, so far, they still have time to mess it up! Please dont comment below on how wonderful/rubbish you think it is, I dont want a browser war!) in order to test websites.
Now I开发者_如何学Go understand its only a release candidate, and is still being developed, but for some reason none of jQuery on my site is not being rendered properly (I say not rendering properly, I really mean not working fullstop).
The only way to get it to work is to use IE9 Browser Mode and IE8 Standards. Using IE9 Broswer Mode and IE9 Standards stops the jQuery working.
I understand im probably going to have to wait until they either ugrade IE or the jQuery API but does anyone know why this is or possibly have a fix?
Cheers guys!
UPDATE
Ok so then guys you can either go back to jQuery V1.4 or use this release candidate of jQuery v1.5 - http://code.jquery.com/jquery-1.5.1rc1.js
First off check if some of your code is incorrect in your $(document).ready()
. if that all looks fine reload your page and hit F12 click the script tab then click start debugging and it will reload the page and halt it with a break point at your error in javascript.
jQuery does work in IE9 RC I use it myself for testing.
However if your doing some thing IE don't support near the top of your $(document).ready()
it could be preventing the rest of the page from loading.
If this is down to console.log
there is a good way to prevent IE from haling of console.log
:
if(console == undefined){ console = {log:function(){}}; }
http://code.jquery.com/jquery-1.5.1rc1.js
That should help ;)
I used IE9 on my laptop at my old job and it worked fine with jquery. And I was just listening in on the jquery dev meeting a couple of days ago and even on that they mentioned that only a couple of test cases fail. You may be having some other issue, maybe a security setting or something.
jQuery 1.5 had some troubles with IE9. I switched back to latest 1.4 and works ok.
In order to use the getElementsById
tag, you'll need to use the Release Candidate as this has fixed the issue.
精彩评论