4.15. Some browsers don't recognize NodeUnfortunately, some web browsers don't support the Node class in your JavaScript. Your code won't run, and you're back to dealing with errors and null values. if (someNode.nodeTypeAll browsers support the nodeType proeprty... == Node.ELEMENT_NODE)...but several browsers report an error right here. { // Do something with the element node } else if (someNode.nodeType == Node.TEXT_NODE) { // Do something with the text node } Here's IE reporting that it doesn't recognize the Node object in your code. |