[Greasemonkey] Question: XPath on XMLHttpRequests

Edward Lee edilee at gmail.com
Sat Apr 16 14:49:56 EDT 2005

On 4/16/05, Julien Couvreur <julien.couvreur at gmail.com> wrote:
> It seems odd that an iframe needs to be used to DOMify the XML
> resulting from the XmlHTTPRequest, though... Firefox doesn't have a
> pure XML document object, that would not tied to any UI?

Nod. Creating an iframe doesn't create its documentElement (inside the
contentDocument), so you'll have to attach the iframe to the actual
page. Just be careful if the html you attach contains scripts that
break out of frames. As long as it doesn't do something like that, you
can just set the display property to none and it shouldn't really
affect the page too much.


More information about the Greasemonkey mailing list