I was tying to use nodeType to make sure that a node was an element in my javascript, but it wasn't working. Then when I did alert(aNode.nodeType); I got undefined, I was really confused so I tried alert(document.nodeType); and I got undefined again! Is there a reason I'm getting undefined instead of DOCUMENT_NODE or 9? I used if(aNode.tagName){ ...} to achive the required result, but it's a hack and I want to know what's wrong with nodeType?
Alan Trick
******************************************************
The discussion list for http://webstandardsgroup.org/


See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to