2.        doc = rootNode.ownerDocument;
It throws both at lines 4 and 13 , showing the following message "Exception: TypeError: doc has no properties". What is missing ?

Apparently an owner document... where is rootNode coming from, exactly?
Actually, this rootNode comes from here (in bold):


********************************************************************
<quoted> (from a firefox UI file)
        //window.content.document is the rootnode
        zoomer.zoom (window.content.document, scale);
*******************************************************************
zoom: function(node, factor) {

            createArrangedList (node);
            czZoomElements(node, factor/100);
********************************************************************


Oh no, how dump I am :) ... the rootNode _is_ the on the top, so it _is_ ownerDocument , right :-[ ? But eventhough I got a "no support for Traversal problem", as following:

<quoted>

...

if (!rootNode.implementation.hasFeature("Traversal", 2.0) ) {
            dump ( "A DOM implementation that supports traversal is required."); 
            return;
}

iterator = rootNode.createNodeIterator(rootNode, NodeFilter.SHOW_ALL, filteringRelevantNodes, true);
...
</quoted>

There is no traversal support available. So the iterator is not created. Can I do anything special to get support to it ?

regards

Reply via email to