Re: Change DocumentType on a loaded Document
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <1d3031bc-765a-49a7-abb9-243c30a6d9d0@z17g2000hsg.googlegroups.com> |
On Jan 24, 11:25 pm, Boris Zbarsky <[email protected]> wrote: > [email protected] wrote: > If you're doing the append as a single AppendChild() on the root node, that > should be all the batching you want, no? > Logically yes. But there is some problem if I replace the <html> in a document. The scroll bars will stop to work. So I reuse <html>,<head> and <body> nodes (they were all created when "about:blank" was loaded), which makes it not a simple swap. I will try nsIContentViewer. It looks promising. > > > I also encounter one other problem in this process. Mozilla does not > > appear to take the <base> I set in the <head> of the DOM > > That's correct. <base> is handled at parse-time. There's a bug on this, as I > recall. > ok, guess I have to continue with my workaround. Do you happen to know if this bug will be fixed in 1.9? As always, thanks a lot for your help.