Fix Browser Compatibility Issues with Internet Explorer 8 in Windows 7 – AppCompat Series


November 8, 2009

Many Web designers use browser detection techniques to ensure that their sites display properly when viewed with specific browsers. Some browser detection techniques encounter problems when viewed with later versions of the browser they’re made for. Internet Explorer has the User Agent String which is the identifier that provides data about its version and other attributes to Web servers. Many Websites and applications rely on the User Agent String to detect the Browser settings.

internet-explorer-8Now the issue is that, web pages that explicitly check the User Agent String and do not support the Internet Explorer 8 User Agent String may not run properly. Applications that host Trident will default to Internet Explorer 7 using the Web Optional Component, but will not have access to Internet Explorer 8 features.

A simple Mitigation to this issue would be to ensure that your web applications properly handle the new ‘MSIE 8.0′ version in the User Agent String. see below for example:

Without compatibility mode:
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
With compatibility mode:
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

Also, use Internet Explorer 7 Compatibility View for those applications based on Internet Explorer 7. This can be done either by clicking on the Compatiblity view button or by using meta tags.

Comp_view

See below for meta tag examples.

<html>
<head>
<!-- Mimic Internet Explorer 7 -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>My Web Page</title>
</head>
<body>
<p>Content goes here.</p>
</body>
</html>

IIS Compatibilty mode

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=EmulateIE7" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

A best practice to detect IE more effectively, is to detect features and not the browser Version details using the “User Agent String”. You will find this MSDN article handy, when you wanna know a way to detect IE effectively – Here

The Complete Application Compatibility Series







If you’re not a subscriber, you can have msigeek blog notifications delivered to you free via these options: RSS Updates , Email Updates and SMS Alerts.

  • http://ambatisreedhar.wordpress.com/ Ambatisreedhar

    Hi Vijay
    Recently I installed IE 8 and was wondering about that compatibility view button.I got to know about Trident.I use to do the same in my coding but never thought of this. Thanks for giving good information.

  • BhuvanaS

    Hi Vijay

    Very Handy Info on Browser Compatibility check for Web developers. Good One

  • http://www.msigeek.com/how-to-make-windows-7-deployment-easy-effective-guides/ How to make Windows 7 Deployment Easy? – Effective Guides – ms'i'geek

    [...] How do you Fix Browser Compatibility Issues?  [...]

  • http://www.msigeek.com/2195/how-to-make-windows-7-deployment-easy-effective-guides How to make Windows 7 Deployment Easy? – Effective Guides

    [...] How do you Fix Browser Compatibility Issues?  [...]

  • http://www.msigeek.com/3067/technet-webcast-migrating-from-internet-explorer-6-to-internet-explorer-8 TechNet Webcast: Migrating from Internet Explorer 6 to Internet Explorer 8

    [...] would also recommend you read these article on How to Fix Browser Compatiblity Issues and OS Version [...]

  • http://www.msigeek.com/985/appcompat-series-how-do-you-fix-the-os-version-number-issues AppCompat Series – How do you fix the OS Version Number Issues?

    [...] Part 2: How do you Fix Browser Compatiblity Issues? [...]

  • http://www.msigeek.com/1539/appcompat-series-libraries-uac-wrp-and-other-core-changes AppCompat Series – Libraries, UAC, WRP and other Core Changes

    [...] Part 2: How do you Fix Browser Compatiblity Issues?  [...]

  • http://www.msigeek.com/1478/appcompat-series-demystifying-the-windows-7-virtual-xp-mode AppCompat Series – Demystifying the Windows 7 Virtual XP Mode

    [...] Part 2: How do you Fix Browser Compatiblity Issues?  [...]

  • http://www.msigeek.com/4091/springboard-series-virtual-roundtable-plan-test-and-assess-windows-7-deployment Springboard Series Virtual Roundtable – Plan, Test and Assess Windows 7 Deployment

    [...] Part 2: How do you Fix Browser Compatiblity Issues?  [...]

  • http://www.msigeek.com/4197/solve-application-compatibility-challenges-in-windows-7-video-from-appdna Solve Application Compatibility Challenges in Windows 7 – Video from App-DNA

    [...] Part 2: How do you Fix Browser Compatiblity Issues?  [...]

  • http://www.msigeek.com/1521/appcompat-series-session-0-isolation-and-secure-desktop AppCompat Series – Session 0 Isolation and Secure Desktop

    [...] Part 2: How do you Fix Browser Compatiblity Issues?  [...]

  • http://www.msigeek.com/4641/identify-website-issues-with-internet-explorer-compatibility-test-tool-iectt Identify Website Issues with Internet Explorer Compatibility Test Tool (IECTT)

    [...] Internet Explorer Compatibility Test Tool (IECTT) is a part of the Application Compatibility Toolkit. Its a freeware tool from Microsoft to solve and address AppCompat Issues. You can also emulate your website to solve the Website Compatibility Issues – Read here [...]

  • http://www.msigeek.com/4817/virtualregistry-shim-with-addredirect-registry-re-direction-to-fix-apps VirtualRegistry Shim with ADDREDIRECT – Registry Re-Direction to Fix Apps

    [...] the browse functionality will not work in IE8 or by Emulating IE7, and only works in IE6; the method to make it work is using Windows XP [...]

  • http://www.msigeek.com/5365/review-websiteblog-with-free-seo-toolkit-from-microsoft Review Website/Blog with Free SEO Toolkit from Microsoft

    [...] Fix Browser Compatiblity Issues with Internet Explorer 8 in Windows 7 [...]

  • http://www.msigeek.com/5390/ie6ie7-to-ie8-application-compatibility-beta-test-opportunity-app-dna IE6/IE7 to IE8 Application Compatibility Beta Test Opportunity – App-DNA

    [...] Fix Browser Compatibility Issues with Internet Explorer 8 in Windows 7 [...]

  • http://www.msigeek.com/5679/webinar-in-depth-demonstration-of-aok-browse-it-tool Webinar: In-depth demonstration of AOK Browse-it Tool

    [...] Fix Browser Compatibility Issues with Internet Explorer 8 in Windows 7 – AppCompat Series [...]

  • http://www.msigeek.com/5799/meet-with-microsoft-applications-practice-team-internet-explorer-9-pp4 Meet with Microsoft Applications Practice Team – Internet Explorer 9 Platform Preview 4

    [...] Fix Browser Compatibility Issues with Internet Explorer 8 in Windows 7 [...]

  • http://www.msigeek.com/5902/springboard-series-virtual-roundtable-migrating-from-internet-explorer-6-to-ie8 Springboard Series Virtual Roundtable: Migrating from Internet Explorer 6 to IE8

    [...] Fix Browser Compatibility Issues with Internet Explorer 8 in Windows 7 [...]

blog comments powered by Disqus

Previous post:

Next post: