> Browser sniffing in general is the problem > > http://jibbering.com/faq/faq_notes/not_browser_detect.html > > navigator.userAgent should be avoided like the plague. The only > exception I've been able to think of is if I want a border to be red > in IE and blue in Safari and I don't really care if it is red or blue > in either browser. That is, I don't care if navigator.userAgent is > lying. > > Peter
In an ideal world: yes. Unfortunately, it is a necessity when object detection is not possible (usually when a method or property exists but gives incorrect values)... and can also be a pragmatic design decision when speed is an issue. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
