Javascript HTML 解析错误 KB927917 IE8
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4384121/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
HTML parsing error KB927917 IE8
提问by zod
I am getting this error in IE 8 .
我在 IE 8 中收到此错误。
But not in all IE 8.
但并非在所有 IE 8 中。
In some system web page is working fine , some are not.
在某些系统网页中可以正常工作,有些则不能。
Is it because of some settings.
是不是因为一些设置。
Enabling or disabling some script will do the magic?
启用或禁用某些脚本会变魔术吗?
If anyone have gone through this error and solved :) please suggest.
如果有人经历过这个错误并解决了 :) 请提出建议。
采纳答案by kennebec
Your users may be running IE8 as IE7 compatibility mode, if that breaks the code you need to detect document.documentMode and branch a fix for IE7.
您的用户可能将 IE8 作为 IE7 兼容模式运行,如果这破坏了您需要检测 document.documentMode 并为 IE7 分支修复的代码。
To find the problem code, run it in compatibility mode yourself and use the IE8 debugger.
要查找问题代码,请自行在兼容模式下运行并使用 IE8 调试器。
回答by Tom Maeckelberghe
You have to check if the dom is loaded:
您必须检查 dom 是否已加载:
$(function(){
...
});
I got the same error as well, I couldn't reproduce it on all IE8. But this solved it!
我也遇到了同样的错误,我无法在所有 IE8 上重现它。但这解决了它!
回答by Sudip
Please refer to this thread.
请参阅此线程。
This is a known issue in I.E.8 and Microsoft site posts suggests installation of Cumulative Security fix pack version KB2360131to resolve this issue.
这是 IE8 中的一个已知问题,Microsoft 站点帖子建议安装累积安全修复包版本KB2360131来解决此问题。
I successfully reproduced this issue on two laptops and was able to resolve it after installing this fix pack. I also tried to uninstall this fix pack and issue reoccurred.
我成功地在两台笔记本电脑上重现了这个问题,并且在安装这个修复包后能够解决它。我还尝试卸载此修复包并再次出现问题。
回答by sglessard
The error can be as simple as a missing closing tag in HTML code.
该错误可以像 HTML 代码中缺少结束标记一样简单。
Sample code :
示例代码:
<li>
<a rel="fancy" href="some-highres-image" title="some-title">
<img src="some-lowres-image" alt="some-name" width="75" height="75" />
<span class="zoom">Zoom displayed onmouseover</a> <!-- This should be </span> -->
</a>
</li>
where rel="fancy" calls fancybox after dom ready. The missing closing spantag triggers the KB927917 error in IE8 (8.0.6001.18702)
其中 rel="fancy" 在 dom 准备好后调用fancybox。缺少结束跨度标记会触发 IE8 (8.0.6001.18702) 中的 KB927917 错误
回答by John L
Update to Sudip's solution: As of today, Security Update KB2936068 fixes this error.
Sudip 解决方案的更新:截至今天,安全更新 KB2936068 修复了此错误。