W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1999

DOM Filters & TreeWalker

From: Bryant, Tim <TBryant@objfactory.com>
Date: Thu, 26 Aug 1999 11:51:26 -0400
Message-ID: <39F7D9A52EF8D21181E8006097A7DF390B19AF@AA-EXCH>
To: "'www-dom@w3.org'" <www-dom@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:46 GMT