[dev] Why not use $browser->hasFeature('javascript');

Timo Boettcher spida@gmx.net
Mon, 9 Sep 2002 14:26:38 +0200


Hi David,

Nachricht vom Montag, 9. September 2002, 07:24:46:

DU> Hi folks,

DU> In a few places in  templates/edit/edit.inc (and probably others) there are
DU> things like:

DU> <?php if (($browser->isBrowser('msie') && $browser->getMajor() >= 4) ||
DU>           ($browser->isBrowser('mozilla') && $browser->getMajor() >= 5)): ?>
DU>   <span id="start_wday"></span>
DU>   <script language="JavaScript" type="text/javascript">
DU>    updateWday('start_wday');
DU>   </script>
DU> <?php endif; ?>

Is there a reason for just checking for these two Browsers? What with
users of Opera, Konqueror, Mozilla...?


 Timo