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

Node cannot be used in a document other than the one in which it was created?

783 views
Skip to first unread message

Jens Ansorg

unread,
Oct 2, 2007, 8:19:44 AM10/2/07
to
hi,

I hope this is the appropriate group otherwise please set a fitting
follow-up.

Firefox3 has tightened security when dealing with different DOMs in the
browser as I just figured out.


I have a page (A) that loads another XHTML document (B) via
XMLHTTPRequest. After load the request.responseXML holds my xhtml
document (B). I pick a certain node out of this document (newData) and
insert it into the page (placeholder), like
"placeholder.parentNode.replaceChild(newData, placeholder);"

This does work in Firefox 2 but throws the error in the subject in
Firefox 3 nightly. Now, I do understand that there is tightened security
and the behavior is probably right.

My Question is now: is there another way to achieve what I'm currently
doing? How can I get parts of (B) into (A)?


thanks
Jens

Martijn

unread,
Oct 2, 2007, 8:41:18 AM10/2/07
to Jens Ansorg, dev-te...@lists.mozilla.org
Hi Jens,

This was a change being made in
https://bugzilla.mozilla.org/show_bug.cgi?id=47903

See:
http://developer.mozilla.org/en/docs/DOM:document.importNode
http://developer.mozilla.org/en/docs/DOM:document.adoptNode
http://developer.mozilla.org/en/docs/Gecko_1.9_Changes_affecting_websites

for information how to solve your problem.
I hope this helps you.

Regards,
Martijn

2007/10/2, Jens Ansorg <je...@ja-web.de>:

> _______________________________________________
> dev-tech-dom mailing list
> dev-te...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-tech-dom
>


--
Martijn Wargers - Help Mozilla!
http://weblogs.mozillazine.org/qa/
http://wiki.mozilla.org/Mozilla_QA_Community
irc://irc.mozilla.org/qa - /nick mw22

Jens Ansorg

unread,
Oct 4, 2007, 3:51:38 AM10/4/07
to

yes, great.

thanks for the pointers1


Jens

0 new messages