On 12 Mar 2005, at 12:23 AM, Alan Trick wrote:
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 ******************************************************
Is it just me, or is this list turning into javascriptgroup.org?
N ___________________________ Omnivision. Websight. http://www.omnivision.com.au/
****************************************************** The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
