Internet Explorer 8: Understand IE8 compatibility

Source: Internet
Author: User
Tags website server
Document directory
  • Contents

I believe that all Web developers and network design engineers have a headache in terms of the compatibility of the browser, except for the compatibility of different browser versions, the compatibility of each version of the composer for Internet Explorer is the same as that for your understanding, however, since Internet Explorer 8, the compatibility between different versions has been optimized, therefore, in this tutorial series, we will explain how many compatible technologies Internet Explorer 8 has built, developers should also use these features to help us develop highly compatible web pages.

Contents
  • History and compatibility of Internet Explorer
  • Internet Explorer 8's Web visualization engine and supported standards
  • Zookeeper mode and file Mode Supported by Internet Explorer 8
  • User Agent string of Internet Explorer 8
  • Compatibility technologies supported by the Internet Explorer 8 Connector
  • Conclusion
History and compatibility of Internet Explorer

In Internet Explorer 5.5 and earlier versions, the W3C standard conversion speed is too slow, and it cannot meet the needs of the booming network, therefore, the Internet Explorer version is only supported by a very small number of standards, therefore, it can be said that the browser before Internet Explorer 5.5 has almost no compatibility with the browser later released.

On the other hand, at that time, the website was very good at reading the standard network design method through CSS for online layout, therefore, most web pages use tables for layout configuration. Therefore, the web page is also very inefficient, after this version, we considered the Quirks mode to be compatible with W3C standards, understanding the word "Quirks" helps the development of the incompatibility website in the future.

Microsoft launched the Internet Explorer 6 connector in 2001. This version has begun to use the DOCTYPE region's "standard mode" and "compatible mode" networks, however, at that time, many websites have created a website using the Quirks mode, and have not yet developed a website using the standard mode, therefore, at that time, few users still use the "standard mode" to design the network, even if this is about to happen nearly a decade ago, however, the difference between the "standard mode" and "compatible mode" is still unclear in some network design points, benefits of using the standard mode to develop a web site.

Microsoft launched the Internet Explorer 7 connector in 2006. This version has significantly increased compatibility with W3C standards due to Internet Explorer 6, if the website designer has already developed a website using the "standard mode", it will effectively reduce the compatibility of the website, through some development techniques, you can solve the slight difference between the timer.

Microsoft launched the Internet Explorer 8 browser in 2009. This version is similar to Internet Explorer 7 and is more compliant with the W3C standards, for example, CSS 2.1, standard DOM support, HTML 4.01 and XHTML 1.0 standards, and access through ACID2 standards. In addition, this version also officially provides many compatibility technologies with different Internet Explorer connector versions, at the same time, it supports different browser modes, such as Internet Explorer 7-standard protocol, Internet Explorer 8-standard protocol, and Internet Explorer 8-compatible protocol modes, to help network design engineers and Web developers use these compatible development technologies to develop network design and marketing, in this way, the same website can have consistent dynamic experiences between different versions of the browser.

Internet Explorer 8's Web visualization engine and supported standards

Internet Explorer 8 provides Internet Explorer 7 and Internet Explorer 8 engines at the same time, in addition to Internet Explorer 8's Web Browser display engine, the Internet Explorer 7 browser can even be created when the web browser is displayed, this part is a big change in the Internet Explorer browser. It is also a good news for developers.

When Internet Explorer 8 was launched, CSS 2.1 (currently the mainstream W3C version) had the highest degree of support in the industry. The following topics were observed:

  • Follow the CSS 2.1 Standard
  • Follow the DOM Standard
  • Follow W3C HTML standards
  • Follow the ACID2 authentication standards

By following these standards, it also means that website design engineers or Web developers can refer to an industry-recognized W3C standard) the following figure shows the relationship between the Network Design and IE compatibility:

  • Windows Internet Explorer Testing Center
  • Support for CSS 2.1 by IE6, IE7, and IE8: a two-dimensional table
  • Internet Explorer compatibility Center
  • Internet Explorer 8 Readiness Toolkit
Zookeeper mode and file Mode Supported by Internet Explorer 8

We already know that Internet Explorer 8 provides different browser modes (labels: you can press F12 to open the producer tool to switch between them ):

In addition to allowing you to select the network Display Engine for network display, you can also specify the "file mode" of the website 」, users can specify the method in which to display the website. This part has different support modes in Internet Explorer 7 and Internet Explorer 8, which are described as follows:

Internet Explorer 8 has three file modes:

  • Quirks Mode
  • Internet Explorer 7
  • Internet Explorer 8 standard

There are only two file modes in Internet Explorer 7:

  • 1. Quirks Mode
  • 2. IE7 Mode

User Agent string of Internet Explorer 8

Because we can specify different receiver modes in Internet Explorer 8, therefore, the website developers may need to determine which browser the user uses to perform the operation, the following is the User-Agent string that is sent when Internet Explorer 8 switches between different zookeeper modes:

IE7

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64 ;)

IE8

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0)

IE8Compatibility

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0)

Yan fully stated:If you use Internet Explorer 9, you can use the following User-Agent string:

IE9

Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)

IE9Compatibility

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0)

Compatibility technologies supported by the Internet Explorer 8 Connector

If our early web pages were designed for Internet Explorer 7, therefore, when users attempt to use the Internet Explorer 8 connector, they may encounter compatibility issues, internet Explorer 8 provides compatibility technologies to help users or Web developers quickly solve compatibility issues between different plug-ins.

The Internet Explorer 8 browser supports two different mechanisms for the browser to select an Internet Messaging engine, on the one hand, users of the scanner can specify the version of the scanner, on the other hand, developers can tell Internet Explorer 8 browser which browser mode should be used by the browser through Meta Tag or HTTP Header.

Determined by the user.

When a user attempts to access the website, if the user finds that the website is not connected to the Internet Explorer 8 browser, in this case, we can use the Compatibility View method to make the website accessible again in the form of Internet Explorer 8 Compatibility labels, as shown below, you can switch in through the [network]/[compatibility testing] method, alternatively, you can directly click the cursor next to the address column to display the Internet Explorer 8 compatibility plugin mode.

If you have enabled the developer tool, you can see that the browser mode switches automatically from IE8 to IE8 compatibility labels:

In addition to manual switch, you can also use the "compatibility modification Settings" function of Internet Explorer 8 to determine whether to change the website address to the Internet Explorer 8 compatibility modification mode for display. website:

Through the [compatible website settings] dialog box, you can add some websites with known compatibility issues to the self-published list one by one, the last three options in the corresponding dialog box allow you to set some display rules, the first option is "updating the website list from Microsoft 」, microsoft helped you sort out a list of websites with compatibility issues with Internet Explorer 8 on some well-known websites, however, these tickets are automatically updated through Windows Update.

Determined by the producer

As Web developers all know, it is very difficult to educate users to calculate a compliance model, it would be nice if it was an Intranet website within the company, however, if your website Server is a large Internet user, it is impossible to educate users one by one to set compatibility.

Internet Explorer 8 also provides developers with a compatibility mechanism, you can use the webpage Meta Tag or HTTP Header to notify the user of how the Internet Explorer 8 browser shows your webpage, in this case, the user does not need to be notified of the router interface mode to be used to perform the switching operation, or solve compatibility issues between different hosts.

Configure according to the operation Surface

This method can be applied in "specific plane", which is an integer based on "plane, you only need to add the following Meta Tag between

  1. <Meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7"/>

However, you must note that the declaration of this row of Meta tags must appear in

  1. <! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Frameset // EN"
  2. Http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd>
  3. <Html>
  4. <Head>
  5. <Meta http-equiv = "X-UA-Compatible" content = "IE = EmulateIE7"/>
  6. </Head>
  7. <Body>
  8. <H1> TEST
  9. </Body>
  10. </Html>

Configure according to website Rules

If you need to make the same settings for the entire website, it is easier to directly adjust the settings of IIS. If you set IIS6 as an example, you canNetwork Attached Network Resources(IIS)Administrator, Add a new self-built HTTP header named X-UA-Compatible on the platform, and set the value to IE = EmulateIE7 to complete the whole site configuration, the parameters are as follows:

If it is IIS7, you can refer to the following instructions for setting:

 

 

 

 

Alternatively, you can directly modify the settings of web. config:

  1. <? Xml version = "1.0" encoding = "UTF-8"?>
  2. <Configuration>
  3. <System. webServer>
  4. <HttpProtocol>
  5. <CustomHeaders>
  6. <Add name = "X-UA-Compatible" value = "IE = EmulateIE7"/>
  7. </CustomHeaders>
  8. </HttpProtocol>
  9. </System. webServer>
  10. </Configuration>
Conclusion

After understanding the Compatibility Technology of Internet Explorer 8, I believe you have a basic understanding of the compatibility technology supported by the Internet Explorer 8 compatibility tool, with these ideas and skills, it makes it easier for users and Web developers or program designers to quickly make existing websites adapt to the Internet Explorer 8 browser environment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.