[Javascript] innerHTML in xhtml (was: document.all for NETSCAPE)

Peter-Paul Koch pp.koch at gmail.com
Wed Oct 13 08:57:38 CDT 2004


> > Sure, sure. But how do I change the page so that it works in Mozilla while still being application/xhtml+xml? I just want to test whether innerHTML works or not.

> 4. Required: The minimal valid XHTML1 element tree:
>     <html xmlns="http://www.w3.org/1999/xhtml">

Thanks. This one did the trick.

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.

-
-------------------------------------------------------------------
ppk, freelance web developer
Interactie, copywriting, JavaScript, integratie
http://www.quirksmode.org/ 
------------------------------------------------------------------



More information about the Javascript mailing list