A better rule is to use triple-equals always, and manually coerce if you really mean it.
This is because you require the programmer to always understand the output (and defaults) of every call made. Sometimes it's undefined. Sometimes it's null. Sometimes it's empty string. This takes experience.
Example, the default for getAttribute is null, but an undefined property is undefined:
document.body.getAttribute("test"); // null
document.body.test; // undefined
Except if it's a special property, then getAttribute might still be null, but the property empty string: var input = document.createElement("input");
input.getAttribute("value"); // null
input.value; // ""
Remember, "" !== null and null !== undefined.