I have a node, which I am sure is an element (from a call to node.previousSibling). However, I had trouble finding a cross-browser javascript method for accessing the Node constants specified in the MDC .
In all browsers, but IE node.ELEMENT_NODE is defined. I tried using a specific instance of node, for example:
e=$("#element_id")[0]; alert("ELEMENT_NODE: " + ELEMENT_NODE);
This also does not work in IE. So what does IE have a way to do this? Should I just define node constants?
source share