W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

Re: whatToShow and attributes

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 23 May 2001 16:57:34 -0400
To: "Jonas Sicking" <sicking@bigfoot.com>
Cc: <www-dom@w3.org>
Message-ID: <OFB071F233.4EB640E0-ON85256A55.0072BB3E@pok.ibm.com>

>The treeWalker says that whatToShow skipping takes precidence over
> the filter. Does that include if the filter returns FILTER_REJECT?

Yes. That's why we were explicit about the order in which these tests are
applied. There were good performance reasons for doing it this way. If you
want the other behavior you can get it by moving the node-type test into
your filter, so this shouldn't be a problem.

>Does nodeIterator or treeWalker ever step into the attributes
>of an element? I would expect not, but the whatToShow filter has a >bit
for attribute nodes.

See the descriptive text for SHOW_ATTRIBUTE.

Joe Kesselman  / IBM Research
Received on Wednesday, 23 May 2001 16:58:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC