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.