Fixing browser mode in IE software

I have a website that works in full compatibility with all browsers, including IE 7 to 9

I was shocked when I tried it on IE-10, there are too many errors, and because I donโ€™t have time to fix it for IE-10, and I also use third-party Telerik controls, I decided to try it simple by turning the document and browser mode back to ie9.

In the Developer Tools for IE-10, if I manually set Document Mode in IE9 Standards and Browser Mode for IE9, all errors will go away, I found a way to get IE-10 to use Document Mode:

<meta http-equiv="X-UA-Compatible" content="IE=9" /> 

But what about browser mode? is there any way to set its value before rendering?


Solution: The method I used in this matter was correct, but the solution for me was to update the windows on the hosting server. There have been many updates suspected of: Updating Internet Explorer 8 Compatibility View List for Windows Server 2008 R2 x64 Edition (KB2598845)

+7
source share
1 answer

You have already sorted the document mode. Doesn't this solve the problem? This is usually a trick.

Browser mode should not enter the game, since it does not affect rendering at all; it just changes the UA line, so it should not have any effect on the page layout .... unless there is something in the code that the browser hack is trying to do by looking at the UA line.

If you have something in your code that does this, then where is the problem, and you should probably fix it. (using the UA string to influence the page layout is usually frowned as bad practice anyway, there are usually better ways to do this)

If he does Telerik himself, then I would suggest that they were already forced to find a fix for him (IE10 had not worked for a long time, and they would have other users complaining), so you can update to the latest version to solve the problem.

0
source

All Articles