Difference between IE9 and IE9 Compatibility Browser View Mode

What is the difference between IE9 and IE9 Compatibility View? Also, if I add an X-UA-Compatible header on the server side (Java), does this affect browser mode?

httpRes.addHeader("X-UA-Compatible", "IE=edge"); 

Does this cancel browser mode?

I need a way that even if a user plays with the settings of the developer toolbar mode, he never displays a compatibility view. How can i do this?

+4
source share
2 answers

I do not know if you are already reading here , there is a clear explanation!

+1
source

You cannot prevent a user from playing with the developer toolbar, and frankly, this is a very good thing. I would not want you to take control of my browser, not that I use IE, but still.

However, you can tell the browser how it should display your page. And what for X-UA-Compatible for.

So answer some of your questions:

Compatibility view is for sites designed for older versions of IE.

Sites designed for earlier versions of Windows Internet Explorer do not always appear in the current version as expected. We turned to this in Windows Internet Explorer 8 by adding a compatibility view function that allows users to "go back" to a previous version of the platform browser that emulates IE7 standards mode.

What you can read in the link provided by @Alesanco.

So what does the X-UA-Compatible do? Well, it tells the browser what mode it should render the page in, which means you can tell IE9 to render the page as if it were IE5. This means that you can control the rendering of the page to some extent, but you cannot expect control over how the user plays with the developer’s toolbar or not if you don’t have access to the user's computer.

See more details.

+1
source

Source: https://habr.com/ru/post/1491638/


All Articles