Curtiss Howard schrieb:
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?
It was one of my testcases to do that since I shun innerHTML (we dont do
it anyway normally)
Does not work either on safari...
You can do dom manipulation on the contents of the body element but you
cannot delete the body element in most browsers under xhtml conditions
as it seems!