- From: Malcolm Rowe <malcolm-what@farside.org.uk>
- Date: Tue, 20 Jul 2004 13:15:10 +0100
Pete Harlow writes: > I wrote www.catnip.co.uk in validated XHTML 1.0 served text/html, and as > far as I know it renders OK in most browsers. If nothing else, if you decide to serve that as application/xhtml+xml, you'll discover that the <script> doesn't function any more, because you've commented it out. If you want it to work as both text/html and application/xhtml+xml, you need to use: <script type="text/javascript"> <!--//--><![CDATA[//><!-- ... //--><!]]></script> (see http://hixie.ch/advocacy/xhtml for more detail) Alternatively, if you don't care about ever sending it using the right MIME type, why bother writing it as XHTML? Regards, Malcolm
Received on Tuesday, 20 July 2004 05:15:10 UTC