SCRIPT1010: Expected identifier in IE10

半城伤御伤魂 提交于 2019-12-04 02:18:07

See this pull request on Github https://github.com/sstephenson/prototype/pull/93

PrototypeJS does some feature detection everytime it loads and Internet Explorer 10 has adjusted the way some of the Javascript syntax is parsed and throws that error.

PrototypeJS is doing a detection to see how to handle passing functions as tag attributes (like an onclick method) and the IE10 javascript parser detects that as a syntax error.

If you look at the pull request in Github it will show you a band-aid as well as a full fix to make Internet Explorer 10 happy.

Please spread the word.

2013-05-17 UPDATE The pull request referenced has been closed and a fix has been integrated into the the master branch of the PrototypeJS github

https://github.com/sstephenson/prototype

Please clone from there and update your scripts.

2014-05-01 UPDATE The fix for this has been released in PrototypeJS 1.7.2

http://prototypejs.org/2014/04/18/prototype-1-7-2/

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