YES! I think I wish that JS disallowed using
null with == and !=. I certainly admit to sloppily using them way too often.
I *REALLY* dislike code that does stuff such as
Code:
if ( ! document.getElementsByClassName ) { ... }
because it implies that a method reference is a boolean value. I think you should *HAVE* to write
Code:
if ( document.getElementsByClassName === null ) { ... }
Ah, well.