W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2000

Re: TreeWalker.whatToShow

From: Dieter Köhler <dieter.koehler@ppp.uni-bamberg.de>
Date: Wed, 23 Feb 2000 15:43:06 +0100
Message-ID: <38B3F1FA.A565F981@ppp.uni-bamberg.de>
To: "www-dom@w3.org" <www-dom@w3.org>
keshlam@us.ibm.com wrote:
> 
> >If a TreeWalker comes across a node which is filtered out by the
> >whatToShow attribute, how should the TreeWalker behave: should it
> >reject or skip the node (corresponding to the definition for rejecting
> >and skipping as given in 7.1.2.1.).
> 
> Skip. Good catch; I've checked in a fix for that wording.

There is a similar (or may be worse) problem in 7.1.2.4.:  Should that
paragraph then read: "... If a node is skiped by the active whatToShow
flags, a Filter will not be called to evaluate that node. ..."?   The
problem here is, that the children of that node would be evaluated
even if the Filter would have rejected the node, if it had been
called.  Since rejecting, which is a possible result in using a
filter, is something stronger than skipping it seems to me more
natural to apply a Filter before applying whatToShow flags.

-- 
=====================================================================
 Dieter Koehler, M. A. - dieter.koehler@ppp.uni-bamberg.de
 Mittlere Kaulberg 22, D-96049 Bamberg, +49(0)951-5190726
 "http://www.philo.de/Philosophie-Seiten/": 1000+ Philosophie-Links
 "http://www.philo.de/VirtualLibrary/14.de.htm": Deutsche Philo-Links
 "http://www.philo.de/xml/": Open XML - XML-Komponenten fuer Delphi
=====================================================================
Received on Wednesday, 23 February 2000 09:44:33 GMT

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