在 Internet Explorer 8 中查看时,简单的 YouTube iframe 嵌入似乎会引发 JavaScript 错误。希望有人能找到我做错了什么——除非这是一个新错误?
如何重现:
- 打开 Internet Explorer 8 并按 F12 以调出开发者工具
- 切换到“控制台”选项卡以观看 JavaScript 控制台
- 访问http://ehough.com/ie8-youtube.html,这是直接从 youtube.com 复制的 iframe 嵌入,并查看 JavaScript 错误
错误:
SCRIPT5007: Unable to get value of the property 'getActivated': object is null or undefined
ie8-youtube.html, line 28 character 128
SCRIPT5020: Expected ')' in regular expression
html5player-vflR_cX32.js, line 675 character 708
SCRIPT438: Object doesn't support property or method 'SetReturnValue'
www-embed-vflqDUnF8.js, line 66 character 56
SCRIPT438: Object doesn't support property or method 'SetReturnValue'
uVlr4eYkNjY, line 1 character 1
有人对此有任何见解吗?