View Single Post
Old 12-19-2012, 05:41 AM   PM User | #4
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,168
Thanks: 59
Thanked 3,992 Times in 3,961 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
Quote:
Originally Posted by Philip M View Post
Code:
this.ie4  = (document.all && !this.dom)?1:0;
  this.ns4  = (document.layers && !this.dom)?1:0;
  this.ns6  = (this.dom && !document.all)?1:0;
  this.ie5  = (this.dom && document.all)?1:0;
Those browsers have been one with Nineveh and Tyre for very many years.
On top of that, it's not even accurate.

FireFox, Safari, and Chrome (I think) will all show up as ns6.

It's hard to imagine any more pointless code in today's market. Or, for that matter, at any time since about 2001 or so.

The good part is that, after shoving in that junk code, it does not appear that he actually uses it any place.
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote