Evangelism & Mozilla & Testing 26 Apr 2006 05:50 pm
Browser Detection Part Doh! (will I ever learn?)
Recently, I wrote about browser detection complaining about vendor/version detection strategies…
While converting my old “Your browser is out of date” messaging on this site from using a page redirect to an in-page message div, I realized that I had messed up my own browser detection for the latest released versions of Gecko-based browsers. doh!
It just goes to show that detecting vendor/version is problematic and should be avoided unless you have a very good reason.
If you are interested in the code, you can check it out. Let me know if you find any errors in this version.