Reputation: 1337
Just upgraded to the RC of IE9 and found that my web pages using jQuery Templates are not rendering the template content.
Pages work fine when I switch to IE8 Browser Mode in the Developer Tools (and Safari, FF, etc).
Anyone got any ideas?
Upvotes: 4
Views: 10359
Reputation: 9121
Check your code for usage of .text(), .contents() and replace those with .html().
IE has problems with those functions, only reliable way to grab content seems to be .html(): http://www.bennadel.com/blog/1829-Script-Tags-jQuery-And-Html-Text-And-Contents-.htm
Upvotes: 1
Reputation: 13161
This problem has been fixed at latest version of jQuery. Upgrade to 1.5.1
Upvotes: 0
Reputation: 2120
There is now a RC version of jQuery v1.5 - here That should fix your problems with jQuery on IE9 RC. Full version of jQuery 1.5.1 is due to be released very soon.
Upvotes: 6
Reputation: 1337
The issue was caused by a bug in jQuery 1.5 when running on an IE9.
The only way to get this working is to wait until the release of jQuery 1.5.1
See: http://bugs.jquery.com/ticket/8052
Upvotes: 4