[eluser]osci[/eluser]
In MSDN
msdn.microsoft.com/en-us/library/dd371735(v=vs.85).aspx
(url has brackets and got stripped so copy link)
Quote:Description
The User Agent String is the Internet Explorer identifier that provides data about its version and other attributes to web servers. Many web applications rely on, and piggyback on, the IE User Agent String. Those that do so and depend on an earlier version number will be impacted. The User Agent string now includes the string 'Trident/4.0' in order to allow differentiation between the Internet Explorer 7 User Agent String and the Internet Explorer 8 User Agent string when running in Internet Explorer 7 Compatibility View. See Understanding User Agent Strings for details.
Also in
agent strings
Quote:Version token Description
MSIE 9.0 Internet Explorer 9
MSIE 8.0 Internet Explorer 8 or IE8 Compatibility View/Browser Mode
MSIE 7.0 Internet Explorer 7 or IE7 Compatibility View/Browser Mode
MSIE 6.0 Microsoft Internet Explorer 6
And
Quote:Token Description
Trident/5.0 Internet Explorer 9
Trident/4.0 Internet Explorer 8
And I read that IE10 will have Trident/6.0 (somewhere in ie10 developer platform site)
Which means that when ie8 is in compatibility view it returns ie7 but to always distinguish you should check for 'Trident/4.0' for IE8 regardless mode.