DOM Filters & TreeWalker

Hello,
I want to make sure that I understand the application of filters to a tree
walker.  If I have the following structure:

<r>
   <n1>
      <s1/>
      <s2/>
   </n1>
   <n2/>
   <n3/>
</r>

If the filter SKIPs element 'n1' then the view presented by the tree walker
is:

<r>
  <s1/>
  <s2/>
  <n2/>
  <n3/>
</r>

So that
  'r'.firstChild == 's1' 
  's2'.nextSibling == 'n2'  
  's1'.parentNode == 'r'

Is this correct?

Thanks,
Tim Bryant

Received on Thursday, 26 August 1999 11:50:11 UTC