views:

194

answers:

3

Does anyone know of an existing browser/OS useragent string grid? It's hard to test, and I would really like a broad sampling of useragent strings, if possible. If no such grid exists, mind posting your useragent string?

Given the idiosyncrocies of the browser/operating system combinations, this information is essential for successful web development.

Thanks!

A: 

Not a grid but, this site seems pretty comprehensive.

Ian
A: 

You may find this site useful.

In particular, in the downloads section, there is a massive CSV file with over 3000 user agent strings, and which browsers they correspond to.

Chris Nielsen
+3  A: 

I would strongly suggest against relying on user-agent strings in any kind of JS app. You will get nothing but problems. Browsers have new versions, some change spoof the user-agent string etc.

A good example was that various sites broke when Opera 10 was released, because they were sniffing the user agent string and read 10 as 1.

Instead, you should use feature detection - test if the browser supports what you're trying to do.

There is really no good reason to sniff the user agent string, other than collecting usage statistics.

Jani Hartikainen
Absolutely -- UA sniffing is the death knell to future compatibilty (i know sites that broke in Safari 2.0.4, and Safari 4 because they interpreted "4" as meaning Netscape 4, so tried to use layers...)
olliej