Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scope of DOMParser in different windows

2 views
Skip to first unread message

Michael Caines

unread,
Aug 5, 2004, 12:57:25 PM8/5/04
to
Is it safe to create new DOMParser instance in a popup window, get an
XML document from .parseFromString, call a function in the opener
window, and pass the XML doc as an argument of that function?

Are there any scoping/security issues here that I should be aware of?
(When closing the popup window, etc.) All of this would be done on a
single domain.

I also need to investigate this for:
MSIE : new ActiveXObject("Microsoft.XMLDOM")
and
Safari : document.implementation.createDocument
if anyone happens to know the situation with those.

Thank-you,
Mike Caines

Martin Honnen

unread,
Aug 5, 2004, 1:07:48 PM8/5/04
to

Michael Caines wrote:
> Is it safe to create new DOMParser instance in a popup window, get an
> XML document from .parseFromString, call a function in the opener
> window, and pass the XML doc as an argument of that function?
>
> Are there any scoping/security issues here that I should be aware of?
> (When closing the popup window, etc.) All of this would be done on a
> single domain.

I don't see a problem with Mozilla as far as I can tell from my use of
XML documents.


--

Martin Honnen
http://JavaScript.FAQTs.com/

0 new messages