对于某些URL(例如http://www.nyest.hu/iframe/240/10),IE8(及更早版本)从未停止加载,但出现以下错误消息:SCRIPT123: This command is not supported.
错误行号指向document.write
命令。 IE9和其他浏览器加载页面没有问题。IE8在document.write上挂起,并且“不支持该命令”
1
A
回答
1
显然这是因为该页面以XML形式提供,并且there is no document.write
in an XML document。其他浏览器也会在document.write
命令中引发某种错误,但它们会更好地处理错误,并完成加载页面。
+1
请参阅[Mozilla web开发人员常见问题](https://developer.mozilla.org/en/Mozilla_Web_Developer_FAQ#How_is_the_treatment_of_application.2fxhtml.2bxml_documents_different_from_the_treatment_of_text.2fhtml_documents.3f)。 – Keith 2011-06-06 06:05:55
相关问题
- 1. OWC不支持IE8
- 2. Cygwin上的Heroku命令挂起
- 3. 哪些命令,并基于该版本在功能TCL不支持
- 4. Django manage.py命令挂起
- 5. SSH远程命令挂起
- 6. OpenSSL的命令挂起
- 7. redis挂在flushall命令上
- 8. Grails挂在命令行上
- 9. svn命令挂在Mac上
- 10. 如何使用javascript支持测试senario并且不支持javascript?
- 11. paramiko exec_command在几个命令后挂起
- 12. 在命令行挂起weblogic数据源
- 13. desktopappconverter.exe在命令行上不支持发行商ID?
- 14. Android HCE不支持select MF命令?
- 15. SMTP认证()命令不支持smtp.office365.com
- 16. Selenium Webdriver - Ruby不支持的命令
- 17. 支持插件但不支持命令的Python IRC bot
- 18. IndexOf不支持在IE8浏览器
- 19. 在IE8中支持Raphaeljs
- 20. document.write到不同的页面并保持
- 21. IE8和localStorage支持
- 22. shell脚本的awk命令挂起
- 23. Team Build的Running winrs命令挂起
- 24. 命令mvnw包-Pprod docker:构建挂起
- 25. kubernetes荚睡眠命令挂起
- 26. DESC挂起的MySQL命令; ASC很好
- 27. 自耕农:哟命令挂起永远
- 28. 执行grails命令时,IntelliJ 11挂起
- 29. Win32 SETX命令有时会挂起
- 30. 命令'sed'在Solaris上不起作用
不确定这一点,但我相信有一些doctypes不支持document.write。什么doctype是页面?你有没有尝试过使用不同的文档类型? (HTML代替XHTML) – GordonM 2011-06-06 06:00:50
@GordonM:类似的东西,但它是导致问题的MIME类型('application/xhtml + xml'),而不是doctype(过渡XHTML)。该页面不在我的控制之下。 – Tgr 2011-06-06 06:39:28