I've some javascript that tests DOM node types against like this:
if(node.nodeType == Node.TEXT_NODE) {
Of course, it all works fine in Firefox, Safari, and Opera. But Internet Explorer 7 is complaining that Node
(with the capital N) is undefined. But that's part of DOM Level 2!
Do I really need to change my code to use magic numbers? Or am I missing something simple here?