- 浏览: 479398 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
alvin198761:
renzhengzhi 写道我参与过12306余票查询系统的开 ...
别给12306 辩解了 -
renzhengzhi:
我参与过12306余票查询系统的开发,用户请求被前面3层缓存拦 ...
别给12306 辩解了 -
renzhengzhi:
写的很好。
JAVA线程dump的分析 -
liyonghui160com:
说好的附件呢
分布式服务框架 Zookeeper -- 管理分布式环境中的数据 -
ghpaas:
orbeon作为xforms标准的实现,不论其设计器还是运行时 ...
XForms 1.1 中文翻译—第1章 关于XForms标准
With site developers verifying that their sites run well in IE9 and taking advantage of the new HTML5 capabilities and better performance in IE9’s Standards mode, now is a good time to recap how to use Browser Mode and Document Mode to test sites for IE9 and previous IE versions.
In summary, developers can use IE’s Developer Tool’s Browser Mode menu to test how their site will run in different versions of IE. The Document Mode menu is what developers use to determine the best rendering mode for their site in an IE8 and IE9 browser. As we’ve mentioned before, we want sites to run well in the latest standards document mode - IE9’s standards mode in IE9 and IE8’s standards mode in IE8.
Before diving into more detail, let’s start with an overview of IE’s versioning and compatibility system…
As illustrated above, versioning and compatibility start with Browser Mode. Browser Mode sets how IE will identify itself to web servers and how websites will be handled by default. An important detail to remember is that Browser Mode is chosen before IE requests web content . This means that sites cannot choose a Browser Mode . Instead site developers choose a Document Mode for their site, which overrides IE’s defaults and declares how a website is rendered. If a site does not specify a document mode then IE assumes the default document mode, which is IE9’s standards mode in IE9.
- Developers can change Browser Mode through the “Browser Mode” menu in IE’s F12 Developer Tools. This setting only applies to the developer’s local machine. For example, developers can have IE9 emulate an IE7 browser, IE8 browser or IE9 in Compatibility View.
- Users can change Browser Mode by clicking on the Compatibility View (CV) button, which causes IE8 and IE9 to emulate the IE7 browser. This is why it’s important for site developers to test their site in the Compatibility View Browser Mode.
- IE’s Compat View List can also change the Browser Mode for specific sites.
The Browser Mode determines
- User-Agent (UA) string that IE sends to servers
- Document Mode IE defaults to
- Conditional Comments that IE evaluates
Browser Mode |
Description |
IE9 |
IE9 reports a UA string, version vector, and document mode to match the default browser behavior, which is the most standards-compliant mode in IE9. Use this mode to test how IE9 users experience your site. |
IE9 Compatibility View |
IE9 reports a UA string, version vector, and document mode, as if it is IE7; however, the UA string also includes the Trident/5.0 token indicating that the browser is really IE9. Use this mode to test how IE9 users experience your site if they click on the Compatibility View button . |
IE8 |
IE9 reports a UA string, version vector, and document mode as if it is IE8. Use this mode to test how IE8 users experience your site. |
IE7 |
IE9 reports a UA string, version vector, and document mode as if it is IE7. Use this mode to test how IE7 users experience your site. |
The Document Mode declares what mode IE’s Trident engine will render the markup in such as IE9’s Standards Mode. Changing the Document Mode through IE’s Developer Tools refreshes the page, but does not resend the UA string or retrieve new markup from the server.
As mentioned before , developers declare the document mode that IE will use when rendering their site. The default document mode is IE9’s Standards mode in IE9. Developers can use the doctype and X-UA-Compatible Meta tag or HTTP Header to change that default as they see fit.
- Developers can change the document mode on their local machines for testing with the Developer Tools.
- Users cannot independently change the document mode for a site (users can click on the Compat View button, which changes the document mode to IE7 for the site)
- IE’s Compat View List can change the document mode for specific sites.
- Developers have ultimate control over what document mode their site runs in by declaring a doctype and X-UA-Compatible Meta tag or HTTP Header.
Document Mode |
Description |
IE9 Standards |
This is the latest standards-compliant behavior available in IE9, and is the default mode used by IE9 to render a webpage that has a strict or unknown document type. |
IE8 Standards |
This behavior matches IE8 when it renders a webpage that has a strict or unknown doctype. |
IE7 Standards |
This behavior matches IE7 when it renders a webpage that has a strict or unknown doctype. |
Quirks |
This behavior matches IE when rendering a document with no doctype or a Quirks doctype. It is similar to the behavior of IE5 and the Quirks mode behavior of IE6, IE7 and IE8. |
Call to action for site developers:
Blog
readers
have asked why IE9 has document modes for previous versions
and when we’ll remove them. As mentioned in previous
posts
,
we have document modes for the IE versions that developers target.
These document modes enable developers to update their sites on their
own schedule. As long as developers need document modes to run their
sites, we’re going to support them. We want to remove document modes as
soon as the web transitions to run in the latest standards mode. The
timing is really up to developers.
We want as many sites as possible to run in IE9’s Standards mode, which is the default. Many developers really want this too - to make the most of modern capabilities and better performance across the web platform. The best way for a site to do this is to use a standards doctype and no X-UA-Compatible Meta tag or HTTP header. If you’ve determined that the best document mode for your site is not the default, publish the correct X-UA-Compatible Meta tag or HTTP Header on your site so that users experience your site in the mode it was designed and tested for. If your site isn’t running in IE9’s Standards mode, decide on an update plan and get your site running the same standards-based markup across browsers.
After verifying that your site works well in IE9, use IE Developer Tool’s Browser Mode to verify that your site continues to work well in previous IE versions by changing the menu options to IE7 and IE8. If you find an issue, use feature and behavior detection to get your site running well in IE9 and previous IE versions.
Marc Silbey
Program Manager
http://blogs.msdn.com/b/ie/archive/2010/10/19/testing-sites-with-browser-mode-vs-doc-mode.aspx
发表评论
-
高性能、高流量Java Web站点打造的最佳实践
2013-12-24 11:23 2808从2005年-2013年,Ashwanth Fernando ... -
高性能、高流量Java Web站点打造的最佳实践
2013-12-24 11:01 4从2005年-2013年,Ashwanth ... -
20行实现javascript模板引擎
2013-12-23 10:35 150520行实现javascript模板引擎 我仍然在用Abs ... -
标题怎么办
2012-03-25 23:50 21.首先在这里 下载Selenium RC,解压到C盘。 ... -
Google Page Speed应用上线,移动设备也在支持之列
2011-04-05 21:23 851Google已经将Page Speed应用到线上,并且加强 ... -
浏览器的加载与页面性能优化
2011-02-16 11:23 1306本文将探讨浏览器渲染的loading过程,主要有2 ... -
门户网站负载均衡技术的六大新挑战
2010-12-23 11:25 973文 / 李晓栋 记得上 ... -
使用 JAWS 测试 Web 应用的技巧
2010-10-31 23:34 1629屏幕阅读器简介 屏幕阅读器(S ... -
How We Evaluate the Experiences We Engineer
2010-10-26 14:38 7109 and how we measured (and co ... -
研究显示:众多网上零售商未遵循Web优化基本准则
2010-10-26 10:25 690Web优化专家Joshua Bixby最近在博客中披露,在 ... -
Common Security Mistakes in Web Applications
2010-10-22 10:02 1687Web application developers toda ... -
A (somewhat) brief history of the performance landscape
2010-10-21 10:44 1706I’d like to enlist your help. ... -
Best Practices for Speeding Up Your Web Site
2010-10-20 10:40 1198Minimize HTTP Requests tag: ... -
Web Performance Optimization Use Cases – Part 1 Benchmarking
2010-10-19 14:40 933Web Performance Optimizatio ... -
Google WebP——让图片更小,让页面访问速度更快
2010-10-12 13:14 1581Google日前对外宣布了一种新的图片压缩格式WebP,可 ... -
剖析IE浏览器子系统的性能权重
2010-09-02 13:23 867最近,InfoQ中文站报道了Web 2.0应用客户端性能问 ... -
Performance: Profiling how different web sites use browser subsystems
2010-09-02 00:41 1204When we first showed IE9 at t ... -
Measuring Browser Performance: Understanding issues in benchmarking and performa
2010-09-02 00:40 941Measuring Browse ... -
Ajax应用开发:实践者指南
2010-08-10 21:13 953目前的Web应用开发基本上都是围绕富互联网应用(Rich ... -
全面提升 Web 2.0 应用程序的性能,第 3 部分: 浏览器渲染时间分析
2010-08-03 11:10 1033谁在调用运行时间最长的方法? 简化的浏览器响应时间 ...
相关推荐
软件自动化测试工具介绍--所有(Software automation testing tools -- all).doc
Kali 渗透测试官方资料
You will then be familiarised with extending Selenium WebDriver API by implementing custom tasks and setting up your own distributed environment to run tests in parallel for cross-browser testing. ...
penetration-testing-with-kali.pdf官方最新大纲,不包含具体内容
Pragmatic Unit Testing With C#_Edited.pdf
“Web Penetration Testing with Kali Linux Third Edition” 资源转载自网络,如有侵权,请联系上传者或csdn删除 。 Table of Contents Introduction to Penetration Testing and Web Applications Setting Up Your ...
Ledoit, O., Wolf, M. (2008). Robust performance hypothesis testing with the Sharpe ratio. Journal of Empirical Finance 15, pp.850–859.
- **Addison.Wesley.Software.Testing.with.Visual.Studio.2010**:这一标题明确指出了书籍的主题是关于使用Visual Studio 2010进行软件测试。Addison Wesley是一家著名的出版公司,专门出版高质量的技术类书籍,...
【标题】"testing面试题-English.doc" 暗示了这是一个关于软件测试面试的文档,可能包含了英文问题和解答,适用于对英语能力和测试技术有要求的职位。在软件行业中,测试是确保产品质量的关键环节,涉及到多种技术和...
After beginning with an introduction to testing in R, the book explores more advanced cases such as integrating tests into R packages; testing code that accesses databases; testing C++ code with Rcpp;...
pragmatic unit testing with c# using NUNIT.
《Java Testing with Spock》是一本专注于使用Spock框架进行单元测试的专业书籍。Spock是一个基于Groovy语言的测试框架,但同样适用于Java项目。它以其简洁、强大的语法和易于理解的报告而受到开发者的欢迎。这本书...
Towards the end of this book, you'll get to grips with Selenium Grid, which is used for running tests in parallel using nodes for cross-browser testing. It will also give you a basic overview of the ...
Web.Services.Testing.with.soapUI Web services are one of the key building blocks of service-oriented solutions. Because of their usage and importance in the enterprise applications, the project teams ...
Microsoft Fakes 中的代码生成、编译和命名约定,microsoft.qualitytools.testing.fakes.dll资源下载
In addition, more and more software projects are embracing continuous integration and including an automated testing phase, as release cycles are shortening and thorough manual testing of ...
《Performance Testing with JMeter 2.9》是2013年7月由Packt Publishing出版的一本关于性能测试的专业书籍。这本书详细介绍了如何使用Apache JMeter进行性能测试,JMeter是一个开源的、功能强大的性能和负载测试...