I'm not being awkward but I still don't understand the issue here.
document.write is not what is being served. Rather, it is part of a
script that is serving html on the client side.
What does javascript have to do the parsing of the xhtml?
How else do I serve html using javascript?
document.write does not work when XHTML is treated as such, i.e. when
document is served with
apropriate MIME type (application/xhtml+xml).
You can try for yourself, go to
http://software.hixie.ch/utilities/cgi/content-type-proxy/content-type-proxy
enter http://choctaw.co.uk/tftw.php?counter=45 as "Location" and
application/xhtml+xml as "Content-type". Submit and check what you
get... Don't pay attention to missing styling, that's
not important in this case.
These will provide you some more information:
http://www.w3.org/MarkUp/2004/xhtml-faq#docwrite
http://ln.hixie.ch/?start=1091626816&count=1
http://www.hixie.ch/advocacy/xhtml
http://lachy.id.au/log/2005/12/xhtml-beginners
http://www.456bereastreet.com/archive/200501/the_perils_of_using_xhtml_properly/
Regards,
Rimantas
--
http://rimantas.com/
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************