• Previous message: [greg-dev] rfc: Feeds & Firefox 2.0
  • Next message: [greg-dev] rfc: Feeds & Firefox 2.0
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    [greg-dev] rfc: Feeds & Firefox 2.0

    Marco Bonetti wrote:
    > Of course, the link should only be shown on Firefox 2.0+:
    > 
    > rss_require('extlib/browser.php');
    > $b=new Browser();
    > if ($b->Name == 'Firefox' && (double) ($b->Version) >= 2.0) {
    >  // Display the fine javascript link and some basic
    >  // explanation on how to use subscribe to new feeds.
    > }
    > 
    
    Naughty, naughty. You should only look at specific versions of specific 
    browsers when you are working around bugs in them, not when you are 
    looking for features. Not only will that fail to work with Opera 10.1 
    and IE8 and the extension for Firefox 1.5.x I'll never get around to 
    writing, it will also fail to work in "Debian Browser" and "Iceweasel" 
    Firefox-alikes.
    
    if (navigator && typeof(navigator.registerContentHandler) == "function") 
    is much safer.
    
    Phil Ringnalda
    
    Posted by Phil Ringnalda [reply] at Mon Oct 9 22:34:41 CEST 2006