为什么 Internet Explorer 11 即使在模拟 Internet Explorer 8 文档模式时也不支持条件注释? [英] Why doesn't Internet Explorer 11 honour conditional comments even when emulating Internet Explorer 8 document mode?

本文介绍了为什么 Internet Explorer 11 即使在模拟 Internet Explorer 8 文档模式时也不支持条件注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用新的 Internet Explorer 11 开发人员工具将文档模式切换为8",但条件注释仍然被忽略,也就是说,它们没有被正确解析并且表现得像普通注释.因此,浏览器不会请求/加载条件注释中的任何引用文件.

I'm using the new Internet Explorer 11 developer tools to switch the document mode to "8", but conditional comments are still ignored, that is, they are not properly parsed and behave like normal comments. So any referenced file inside the conditional comment is not requested/loaded by the browser.

为什么会这样?是bug吗?

Why does this happen? Is it a bug?

如果您认为这确实是一个需要修复的错误,请进入并说您也可以在针对此问题报告的 Microsoft 错误报告中重现此问题:
通过 F12 开发者工具模拟文档模式时,条件注释不起作用.

If you think that this is indeed a bug that needs to be fixed, please go in and say that you too can reproduce this on the Microsoft bug report that is reported for this issue:
Conditional comments do not work when emulating document modes via F12 Developer Tools.

更新:此问题已在提到的错误报告中得到修复.

Update: This issue has been reported to be fixed in the mentioned bug report.

推荐答案

根据 Jacob Rossi [MSFT]

这应该在 IE11 的更新 1 中修复,上周发布.

This should be fixed in Update 1 for IE11, released last week.

发布于 2014 年 4 月 22 日.

That was posted on April 22, 2014.

在我自己运行一些测试时,这似乎确实得到了修复,并且一切都再次顺利运行以测试有史以来最神奇的浏览器...Internet Explorer!

In running a few tests myself it does appear that this was fixed and all is running smoothly again for testing the most amazing browser ever produced...Internet Explorer!

这篇关于为什么 Internet Explorer 11 即使在模拟 Internet Explorer 8 文档模式时也不支持条件注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆