The thing is - for almost all scenarios - using browser detection is already the wrong thing to do. You shouldn't be doing:
if (Browser.ie) var xhr = new ObjectX(...) but rather - if (!(XMLHttpRequest in document)) .... And so the only scenario when you will be using Browser is when feature detection won't cut it - thus user-agent is a good and valid choice On Wed, Oct 13, 2010 at 2:19 PM, Olivier El Mekki <[email protected]>wrote: > On 00:23 Wed 13 Oct , Ryan Florence wrote: > > If you are browsing the web with a faked user agent string, that's your > fault. > > Just like it's your fault if you disable javascript. Still, it is > considered as a security good pratice. Even if a very few people are > doing it, we can't blame them for trying to be secure. > > Of course, it is not as pragmatic as nojs support, since this last one > is also important for search engine index. > > We could merge the two methods : checking the user agent, then matching > it against feature detection, setting some 'double_checked' flag that > let mootools user be sure about the browser, and not implementing crashy > feature if not. > > Or we could use feature detection and use the user agent in case feature > detection isn't enough. > > I suppose you debated that when switching browser recognition method. > What were the problems of feature detection, except the firefox broken > one? > > -- > Olivier El Mekki. > -- Arieh Glazer אריה גלזר 052-5348-561 5561
