[Javascript] innerHTML in xhtml
liorean
liorean at gmail.com
Wed Oct 13 15:14:39 CDT 2004
On Wed, 13 Oct 2004 20:20:41 +0200, Peter-Paul Koch <pp.koch at gmail.com> wrote:
> You can't write to innerHTML in app/x+x mode. However, my test page does remove the text from the h2.
> http://www.quirksmode.org/dom/innerhtmltest.xhtml
> ??? This is getting vaguer and vaguer. Either Mozilla should support it, or not, but it shouldn't try to do both at once.
They are internally using ranges and the CreateContextualFragment
function for emulating the innerHTML setter. Have you tried either
using a Range and the [object Range].createContextualFragment
function or the global DOMParser function directly to see if they too
fail this way? If the former do but the latter don't, then we know
where the problem lies.
--
David "liorean" Andersson
<uri:http://liorean.web-graphics.com/>
More information about the Javascript
mailing list