简体   繁体   English

我可以依靠IE的浏览器模式和doctype来调试IE 8及更低版本+ Quirk的问题吗?

[英]Can I depend on IE's Browser mode and doctype to debug issues for IE 8 and below + Quirks?

If I use the F12 Developer Tools to debug for IE, can I depend on the "Browser Mode" and "Doctype" to debug issues for IE8 and below? 如果使用F12开发人员工具调试IE,是否可以依靠“浏览器模式”和“文档类型”来调试IE8及以下版本的问题?

By debugging I mostly mean for overall page behavior... HTML/CSS, A client says "The dropdown doesn't work in IE8", I have IE9... Instinct is to hit F12 and change the doctype or browser mode and test. 通过调试,我主要指的是整个页面的行为... HTML / CSS,客户端说“下拉列表在IE8中不起作用”,我有IE9 ...本能是按F12键并更改doctype或浏览器模式并进行测试。

Short answer, no. 简短的回答,不。

I would not recommend using compatibility mode. 不建议使用兼容模式。 I have never quite understood why MS doesn't seem to do what Mozilla and Google do which is, disallow the use of deprecated tags . 我从未完全理解为什么MS似乎不执行MozillaGoogle所做的事情,即不允许使用不推荐使用的标签 As an example, at my work, we have two tiers of browser usage, tier 1 and tier 2. Tier one consists of: Safari (oddly enough, we get quite a few customers buying via their iPads), Chrome , Firefox and IE9 . 例如,在我的工作中,我们有两层浏览器使用,第一层和第二层。第一层包括: Safari (很奇怪,我们吸引了很多客户通过iPad购买), ChromeFirefoxIE9 Tier two is: IE8 and the rest of the pile. 第二层是: IE8和其余部分。 Recently, we had a bug where some checkboxes where not rendering correctly in **only IE8** ; 最近,我们遇到了一个错误,即某些checkboxes **only IE8**中无法正确呈现; but worked fine in IE7 and IE9 . 但是在IE7IE9效果很好。 The moral here is that using compatibility mode is testing under an assumption, and if you want thorough and correct testing, you cannot assume anything. 这里的道理是,使用兼容模式是在假设下进行测试,并且如果您想进行彻底且正确的测试,则不能假设任何事情。

You can try to use the Quirks mode, but that's not 100% the same. 您可以尝试使用Quirks模式,但这并不完全相同。 If you are lucky, you will hit the same bug also in quirks mode. 如果幸运的话,您也会在怪癖模式下遇到相同的错误。

The only sure way is to use a IE8. 唯一确定的方法是使用IE8。 There are cross-browser testing tools that enable you to do so without any installs. 有跨浏览器测试工具可让您无需安装任何工具。

Just for bug reporduction purposes http://www.modern.ie/virtualization-tools offers some VM-s you can use. 仅出于错误还原的目的, http://www.modern.ie/virtualization-tools提供了一些可以使用的VM。

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

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