Change DocumentType on a loaded Document

"[email protected]" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization http://groups.google.com
Message-ID <9ef4de60-9d59-4823-879e-393e36cc75ae@v17g2000hsa.googlegroups.com>
Is there a way to change the DocumentType on a loaded Document? I dig
through the API but couldn't find one. I understand that I might need
to recreate a Document in this case. nsIDOMImplementation interface
can help me to create a new Document with the newly modified
DocumentType. I can then import the nodes from the old document.
However, the problem I am facing then is how do I show this new
Document in the browser window? Is there a way to supply the
nsIWebBrowser/nsIDOMWindow with a parsed DOM and let it show it? Thank
you in advanced.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.