[Javascript] innerHTML in xhtml
Peter-Paul Koch
pp.koch at gmail.com
Wed Oct 13 13:20:41 CDT 2004
> > Conclusion: Mozilla 1.6 does support innerHTML even in an
> > application/xhtml+xml document.
> > http://www.quirksmode.org/dom/innerhtmltest.xhtml . Opera does, too,
> > but Safari doesn't.
>
> Your test page shows it reading the innerHTML property, but have
> you tried writing it?
Hmmmm.....
No, apparently you're right. 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.
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/
------------------------------------------------------------------
More information about the Javascript
mailing list