From:  Antônio Gomes <antonio.gomes@indt.org.br>
Date:  22 Sep 2005 23:29:27 Hong Kong Time
Newsgroup:  news.mozilla.org/netscape.public.mozilla.layout
Subject:  

Re: about zooming

NNTP-Posting-Host:  rheet.mozilla.org

>> There is no traversal support available.
>
>
> The support is there.  hasFeature just returns false.  Not sure 
> whether there's a good reason for it; probably worth filing a bug on 
> returning true instead.

Got it, but this is not the only odd "non-suport". At lines like




function filteringRelevantNodes (node) {

    // just testing
    dump ("FILTER: Node name: " + node.localName + "\n");
    return NodeFilter.FILTER_ACCEPT;
}

...

funtion createIterator (rootNode) {
    (...)
    try {
                // testing TreeWalker
                walker = rootNode.createTreeWalker (rootNode, 
NodeFilter.SHOW_ALL, filteringRelevantNodes, true);

                // testing nodeIterator
                //iterator = rootNode.createNodeIterator(rootNode, 
NodeFilter.SHOW_ALL, filteringRelevantNodes, true);

    } catch (e) {

                dump ("\n" + "Exception: " + e + "\n");
    }
    (...)
}


Both lines throw with the following Exception: "ReferenceError: 
NodeFilter is not defined". :(

regards