verisimilitude
verisimilitude

Reputation: 5108

Force the Browser Mode and Document Mode of IE 9 to IE 9

I need to force both the browser mode and document mode of my IE 9 to IE 9. Now, I've set "X-UA-Compatible" to "IE=9" in the tag of my header, but it has no effect when I change the document mode to either IE 7 / IE 8.

Force the Browser Mode and Document Mode of IE 9 to IE 9

My site is to be compatible only with IE 9 and not with any other versions of IE. Furthermore, I looked through and studied most questions answered here and through blogs (msdn) but nothing seems to be working for me (Before the moderators close this as a duplicate question). Can any one of you guide me about the same ?

Upvotes: 6

Views: 18786

Answers (2)

Chris
Chris

Reputation: 3162

IF you have set up the (X-UA..") tags already then that should force it into the appropriate Document Mode and Browser Mode.

It looks like you're setting the document mode in the IE dev tools console, this overrides it whatever you put in as tags.

This diagram explains how IE determines what modes to display in and the dev toolbar takes priority.

Edit/Update

Unfortunately it seems the above link got taken down. For now here is an alternative

Upvotes: 10

Mirza Salman Niaz
Mirza Salman Niaz

Reputation: 131

Well, Make Sure The tag ("X-UA-...") you are putting should be the first tag inside the Header of your document. Secondly, verify that the html renders (by view source property) in browser, also contains as the first tag ("X-UA-...") in header section.

Upvotes: 10

Related Questions