|
|
Re: Putting nodes from XMLDoxument to XulDocument: msg#00035
|
Subject: |
Re: Putting nodes from XMLDoxument to XulDocument |
R_O_O_K wrote:
Hi!
I am experimentig a bit with Mozilla XML capabilities.
I ran into a strange problem:
I have a XMLDocument foo which I want to append to a XULDomument bar at
some place.
I use
var NewNodes = bar.importNodes(foo.documentNode, true);
This sould copy nodes from foo to bar. Instead I get an error saying:
uncaught exception: [Exception... "Access to property denied" code:
"1010" nsresult: "0x805303f2 (NS_ERROR_DOM_PROP_ACCESS_DENIED)"
location: "file:///C:/bb/xul/abc.xul Line: 23"]
Am I doing something wrong? How do I copy nodes from one domument into
another?
Michal Ziemski
Obviously, the foo is from a different domain than the bar, and you hit
our security checks for cross site scripting.
Note, foo.documentNode should be null, you want foo.documentElement.
(Guess you do that, cause null would ge a different error message)
Axel
|
| |