I work for a company that writes software which client sites embed with < script language=\"JavaScript\" src=..... etc. etc. We depend quite a bit on document.write to wr
Perhaps you can create an iframe of type text/html, write the content into that, and then import the nodes back into the main page.
text/html