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)

    zoomer =
        Components.classes["@mozilla.org/zoomer;1"].createInstance(Components.interfaces.nsIZoomer);

    if (zoomer) {
        scale += 10;
        zoomer.zoom (window.content.document, scale);
    } else dump ("houston we have a problem");

//window.content.document is the rootnode

********************************************************************

<quoted> (zoom method - other file)

    zoom: function(node, factor) {

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

</quoted>
******************************************************************

ps: the zoomer is a xpcom components created by me. Its core is the "czZoomElements" method, that works fine, uses the same "node" element as well (e.g. node.ownerDocument.defaultView.getComputedStyle ...)

The createArrangedList would create a list of relevant nodes for the zooming, used by the czZoomElements method. At this point, the czZoomElements walks recursively through the entire dom looking for these nodes (it works, but sometimes slowly, depends on how big the webpage is ) ...

regards

Reply via email to