Excuse the off-topic question; hopefully it's quick.

I want to copy document nodes from a document in an iframe into the document
that hosts the iframe. In firefox, you can just do it directly:

  newNode = iframeDocumentNode.cloneNode(true);
  mainDocumentElement.appendNode(newNode);

But IE6 (haven't tried 7; needs to work w both) fails at the second line,
saying 'invalid argument'. The above code works fine if you clone a node
from the main document, so my guess is that this is a poorly reported
instance of the similar error from xml-land:

  WRONG_DOCUMENT_ERR - Raised if newChild was created from a different
document than the one that created this node

So how can I do this? Any thoughts?

Thanks,

Dave Merrill




You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to