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

<quoted>


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");
   }
   (...)
}
</quoted>

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

regards


_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout

Reply via email to