From: James Britt Date: 2005-11-25T11:56:21+09:00 Subject: Re: PLATFORM tests mental@rydia.net wrote: > Quoting Kero : > > >>>Precisely. Tests for specific platforms are almost worthless >>>-- you want to test for specific features or behaviors instead. >> >>Duck platforming > > > BINGO. Which, for example, is a preferred way to do cross-browser JavaScript coding, as simply inspecting a user-agent string is often misleading. Better to to see if a critical function or property is defined, and does The Right Thing, and gracefully fall back if missing. See the things you learn using JavaScript? James -- http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools