W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2004

[whatwg] Re: OT: (X)HTML and design of site

From: Malcolm Rowe <malcolm-what@farside.org.uk>
Date: Tue, 20 Jul 2004 13:15:10 +0100
Message-ID: <courier.40FD0CCE.00004422@mail.farside.org.uk>
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">

(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? 

Received on Tuesday, 20 July 2004 05:15:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:35 UTC