Click here to Skip to main content
15,879,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I need a method to force document mode for specific sites. I have no any means to make the developers of those sites to put proper X-UA-Compatible headers. Actually I would imagine my code as an IE 10 or 11 extension that intercepts user activity and forces document mode according to a list. I know that Microsoft has it's own list for that, called Compatibility View List for IE10[^], for IE11[^], used by IE itself. But as these sites are intranet sites, that list is of no use. It would be great to have a possibility to extend that list locally, but I haven't found anything in that direction. Actually the HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\BrowserEmulation key could lead somewhere, but no actual documentation seems to be available especially for the UserFiler key. Using the policy is also an option, but you can't fine-tune the setting there.

The best option would be to use the same methods as IE Developer Toolbar is using when you force Document Mode change[^]. But after getting trough the Internet Explorer Platform APIs[^], I haven't found any method or property that could be used for this :(

The key point is, that IE not only renders the page differently, but it is changing user agent string accordingly. In my case this is a highly desirable feature, since some of those sites are accepting only some specific IE version.

I hope that somebody can give me some advice, either on how to extend the iecompatviewlist.xml list locally or how to reproduce the IE Developer Toolbar feature.

Thank you in advance...

[update]
I have figured out that there is a local cache for the list: File:\\%LOCALAPPDATA%\Microsoft\Internet Explorer\IECompatData\iecompatdata.xml, but as it is updated by the it makes little sense to change it directly.
Posted
Updated 18-Apr-14 3:08am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900