On Thu, Jun 25, 2009 at 9:35 AM, Werner Punz<[email protected]> wrote: > Werner Punz schrieb: > >> I have yet to test all this on IE but I assme we run here into similar >> problems! >> >> > Jepp similar picture on IE... > > As it seems for now we can only replace the body contents safely > in xhtml environments, not the tags and not the heads, however > replacing the heads is pointless anyway! > > Werner > >
Werner, Forgive me if I'm missing some important details, but why even use innerHTML in the first place? It should be possible to parse the incoming text into a DOM node (there's some JS function for it, I can't remember which), then import that node as a sibling of the <body> element (for example) and delete the first <body> element. Wouldn't that work? Curtiss Howard
