简体   繁体   English

IE8 在 document.write 上挂起并显示“不支持此命令”

[英]IE8 hangs on document.write with “this command is not supported”

For certain URLs (eg http://www.nyest.hu/iframe/240/10 ), IE8 (and older) never stops loading with the following error message: SCRIPT123: This command is not supported.对于某些 URL(例如http://www.nyest.hu/iframe/240/10 ),IE8(和更早版本)永远不会停止加载并显示以下错误消息: SCRIPT123: This command is not supported. The error line number points to a document.write command.错误行号指向document.write命令。 IE9 and other browser load the page without problems. IE9等浏览器加载页面没有问题。

Apparently this is because the page is served as XML, and there is no document.write in an XML document .显然这是因为该页面作为 XML 提供,并且XML 文档中没有document.write Other browsers throw some sort of error at the document.write command too, but they handle the error better and do finish loading the page.其他浏览器也会在document.write命令中抛出某种错误,但它们可以更好地处理错误并完成页面加载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM