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

Re: DOM Level 3 Loading -- node filtering

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Tue, 26 Feb 2002 11:36:08 -0500
To: "Fred L. Drake, Jr." <fdrake@acm.org>
Cc: www-dom@w3.org, "Fred L.Drake" <fdrake@acm.org>
Message-ID: <OF9F977090.66935B30-ON85256B6C.005A6FCD@pok.ibm.com>

>Is an implementor allowed to change the value of the whatToShow
>attribute once parsing has begun

See past discussion re filtering in the Traversal chapter. The decision
there was that whatToShow was not mutable (allowing it to change seemed to
unreasonably constrain implementations), but you can achieve the desired
results by specifying SHOW_ALL and then make all the decisions, including
node-type, dynamically in your filter logic. I'd avoid doing something
different here unless there is an extremely good reason, simply to ease the
task of learning how to use the DOM.

Joe Kesselman  / IBM Research
Received on Tuesday, 26 February 2002 11:36:43 UTC

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