Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: "Christoph M. Becker" Newsgroups: comp.lang.javascript Subject: Re: Forced to browser-sniff Safari version Date: Thu, 02 Apr 2015 01:04:06 +0200 Organization: solani.org Lines: 31 Message-ID: References: <14p6gba3vihvk$.13hyy95el3gl8$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Trace: solani.org 1427929437 8568 eJwFwQEBwCAMAzBLZ6Mtk8PK8S+BBMlBaxKcuLg2YilqXfe26u84OJ9pirtHVmmqpR25GuMBKGEREw== (1 Apr 2015 23:03:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Wed, 1 Apr 2015 23:03:57 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 X-User-ID: eJwFwYEBwCAIA7CXdLQwzgEt/59gQvPtJ+B0cDiyYngsoYI4+NqQFVvdaN2MvDXW4+tXU3oebRHK In-Reply-To: Cancel-Lock: sha1:Babc6DBpv1gZzZXmrAdCM4/2X78= X-NNTP-Posting-Host: eJwFwYERACEIA7CV4EqrHQfx3X+ETwilZpWo4uM7W2fGn+W8AFPswupO7ojKF9djdDPCNfgBEr0QaQ== Xref: csiph.com comp.lang.javascript:27160 Richard Maher wrote: > On 4/1/2015 10:50 PM, Denis McMahon wrote: > >> Identify a 'feature' whose presence or absence in the browser correlates >> to the differences in browser behaviour which you are interested in, and >> test for the presence or absence of that feature. >> >> The best place to find out about such features is in the browser >> changelogs and / or browser specific forums. >> > > More inane platitudes from self-righteous pompous twat? > > Let's acknowledge the elephant in the room - It can't be done dick-head! What Denis suggests might well be doable -- but it would only be slightly better than browser sniffing, if at all, see [1]. If proper feature detection is not possible, as you already have suggested, you may consider to ask somewhere else for the "best" browser sniffing technique. This newsgroup's FAQ, which you most certainly did read, explicitly mentions that browser sniffing is to be avoided[2] -- so what do you expect? [1] [2] -- Christoph M. Becker