{"id":12,"date":"2006-04-26T17:50:55","date_gmt":"2006-04-27T00:50:55","guid":{"rendered":"http:\/\/bclary.com\/blog\/2006\/04\/26\/browser-detection-part-doh-will-i-ever-learn\/"},"modified":"2006-05-16T21:37:57","modified_gmt":"2006-05-17T04:37:57","slug":"browser-detection-part-doh-will-i-ever-learn","status":"publish","type":"post","link":"https:\/\/bclary.com\/blog\/2006\/04\/26\/browser-detection-part-doh-will-i-ever-learn\/","title":{"rendered":"Browser Detection Part Doh! (will I ever learn?)"},"content":{"rendered":"<p>Recently, I wrote about <a href=\"\/blog\/2006\/04\/21\/browser-detection-part-duh-will-they-ever-learn\/\">browser detection<\/a> complaining about <a href=\"http:\/\/developer.mozilla.org\/en\/docs\/Browser_Detection_and_Cross_Browser_Support\">vendor\/version<\/a> detection strategies&#8230;<\/p>\n<p>While converting my old &#8220;Your browser is out of date&#8221; 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. <strong>doh!<\/strong><\/p>\n<p>It just goes to show that detecting vendor\/version is problematic and should be avoided unless you have a very good reason.<\/p>\n<p>If you are interested in the code, you can <a href=\"\/build\/checkBuild.js\">check it out<\/a>. Let me know if you find any errors in this version.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I wrote about browser detection complaining about vendor\/version detection strategies&#8230; While converting my old &#8220;Your browser is out of date&#8221; 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! &hellip; <a href=\"https:\/\/bclary.com\/blog\/2006\/04\/26\/browser-detection-part-doh-will-i-ever-learn\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Browser Detection Part Doh! (will I ever learn?)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,2,4],"tags":[],"class_list":["post-12","post","type-post","status-publish","format-standard","hentry","category-evangelism","category-mozilla","category-testing"],"_links":{"self":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts\/12","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/comments?post=12"}],"version-history":[{"count":0,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/posts\/12\/revisions"}],"wp:attachment":[{"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/media?parent=12"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/categories?post=12"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bclary.com\/blog\/wp-json\/wp\/v2\/tags?post=12"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}