[jQuery] Re: traverse complete DOM of a webpage

2009-06-03 Thread Karl Swedberg
Hi RobG, I'm wondering about this line: node = node || document.getElementsByTagName('html')[0]; Is there a reason why you use document.getElementsByTagName('html')[0] and not document.documentElement? I haven't explored browser issues with document.documentElement, so maybe that's it? Ju

[jQuery] Re: traverse complete DOM of a webpage

2009-06-02 Thread Sourabh
Thanks this solved my problem :) On May 21, 6:57 am, RobG wrote: > On May 20, 8:35 pm, Sourabh wrote: > > > Hi > > > I am new to jQuery.I have a problem where I want to traverse through > > DOM.For example a complete webpage.Is there any jQuery way to traverse > > complete DOM of the current pa

[jQuery] Re: traverse complete DOM of a webpage

2009-05-20 Thread RobG
On May 20, 8:35 pm, Sourabh wrote: > Hi > > I am new to jQuery.I have a problem where I want to traverse through > DOM.For example a complete webpage.Is there any jQuery way to traverse > complete DOM of the current page where the jQuery script resides ? Traversing the DOM is trivial, using rec