Well I have discovered that for whatever reason, IE has always identified itself as Mozilla. IE7 identifies itself as mozilla version 4, the same as IE6. The w3schools detection program returns the following about IE7
CodeName=MozillaMinorVersion= Beta 2Name=Microsoft Internet ExplorerVersion=4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)...UA=Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; FunWebProducts; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727)
Somehow then I need to be able to test for MSIE 7.0 as part of the detection. Any ideas about how to deal with this?For the record, Firefox reads
CodeName=MozillaMinorVersion=undefinedName=NetscapeVersion=5.0 (Windows; en-GB)UA=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8) Gecko/20051107 Firefox/1.5
Basically, the more I look at this the more horrible it looks. Opera, for example, identifies itself as Internet Explorer...