jQuery Templates not working in IE9 RC

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-28 04:56:29

问题


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?


回答1:


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.




回答2:


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




回答3:


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




回答4:


This problem has been fixed at latest version of jQuery. Upgrade to 1.5.1




回答5:


It might be fixed but is still an issue via asp.net!



来源:https://stackoverflow.com/questions/5004437/jquery-templates-not-working-in-ie9-rc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!