Both lines throw with the following Exception: "ReferenceError:
NodeFilter is not defined". :(
Is this in an XPCOM component?
Yes, it is a pretty simple xpcom component called "zoomit" (implemented
as an extension). Actually, this extension performs zooming properly,
just walking through the entire dom tree searching for nodes (text ,
images, frames and so on). I mean, this part of my code throws, and it
still works
NodeFilter would normally be defined on a window object.... You want
to use the document's defaultView for it, probably.
What do you mean ? Create a NodeFilter from a document.defaultView ? HOW ?
I'm afraid I have a bigger problem than I imagined. Look at this
exception message:
[Exception... "Component returned failure code: 0x80004001
(NS_ERROR_NOT_IMPLEMENTED)
[nsIDOMDocumentTraversal.createNodeIterator]" nsresult: "0x80004001
(NS_ERROR_NOT_IMPLEMENTED)" location: "JS frame ::
file:///home/agomes/MozillaDevel/sources/mozilla_cvs_11092005/dist/bin/components/zoomit.js
:: createArrangedList :: line 58" data: no]
thrown by this line:
iterator = rootNode.createNodeIterator(rootNode, 0xFFFFFFFF,
null, true);
regards
ps: thanks so much for supporting me.
Antonio Gomes
--Nokia Technology Institute
_______________________________________________
mozilla-layout mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-layout