Skip navigation.

miscoded

the web is a hack

practising and preaching

,

The Surfin' Safari blog writes:

We strongly recommend looking for the AppleWebKit string and its version number, *not* for Safari



Apple's Safari FAQ writes:

If you need to identify the exact browser and version of clients accessing your site, use the AppleWebKit/XX portion of the string.



And lib.js on apple.com says:

this.isSafari= (agent.indexOf('safari') != -1);


Makes you wish browser vendors had tried suing browser sniffer authors back in 1996, rather than adding elaborate workaround strings to their UserAgent information. Seriously, authors should try a lot harder to not use name sniffing.

FirechickenGMail shortcut mappings

Comments

Jere 4. January 2007, 09:41

Now that's nice... :rolleyes:

Sniffing for "AppleWebKit" still is browser sniffing though – hardly a better alternative.

How to use Quote function:

  1. Select some text
  2. Click on the Quote link

Write a comment

Comment
(BBcode and HTML is turned off for anonymous user comments.)

If you can't read the words, press the small reload icon.


Smilies