Walking up the DOM tree

Ravikiran Rajagopal ravi at ee.eng.ohio-state.edu
Sun Nov 10 19:02:32 GMT 2002


>>   How do I walk up the DOM tree? The problem is that I cannot use something 
>> like this because paramters are passed by reference:

> Huh? what ?

I guess I wasn't clear. In the loop, I cannot do
     elem = elem.parentNode()
because we get a reference from parentNode() which tries to assign 
elem.parentNode() to elem thereby changing the data of elem. Does this make 
sense? If I am missing something completely obvious, contact me via private 
mail.

Ravi,
  who thinks his coding skills can be better





More information about the kfm-devel mailing list