[Greasemonkey] reading document tree of iframe
James Cowan
cowanj at freenet.co.uk
Tue Aug 8 19:56:01 EDT 2006
Hi
I am loading a document into an iframe and then want to analyse the dom tree
of the loaded document.
Using iframe.addEventListener('load', getDomTree, true); I can attach some
code to analyse the tree fine when it is from the same domain as the
document that contains the iframe. When I load a url into the iframe from a
different domain, I do not seem to be able to read it
(iframe.contentWindow.document is null).
I guess this is probably a general firefox permissions problem rather than a
specific greasemonkey query but I was wondering whether anyone knew how to
get around this problem.
James
More information about the Greasemonkey
mailing list