W3C home > Mailing lists > Public > www-html@w3.org > January 2003

Re: HTML or XHTML - why do you use it?

From: Toby A Inkster <tobyink@goddamn.co.uk>
Date: Wed, 8 Jan 2003 07:51:19 +0000
To: Ian Hickson <ian@hixie.ch>
Cc: "Peter Foti (PeterF)" <PeterF@SystolicNetworks.com>, "'www-html@w3.org'" <www-html@w3.org>
Message-ID: <20030108075119.GA26383@ophelia.goddamn.co.uk>
On Wed, Jan 08, 2003 at 12:57:57AM +0000, Ian Hickson wrote:
| The problem is that the following string:
| 
|    <script> <!--
|      work();
|    // --> </script>
| 
| ...will be treated differently depending on whether it is supposed to be
| HTML or whether it is supposed to be XHTML.

True -- so use this instead:

   <script>
     work();
   </script>

Perfectly valid in both HTML 3.2, HTML 4.0, HTML 4.01, XHTML 1.0, HTML 1.1 
and the latest XHTML 2.0 draft.

-- 
Toby A Inkster BSc (Hons) ARCS
E-mail:   tobyink@goddamn.co.uk
PGP:      http://www.goddamn.co.uk/tobyink/?id=12
Web Page: http://www.goddamn.co.uk/tobyink/
IM:       AIM:inka80 ICQ:6622880 YIM:tobyink Jabber:tobyink@a-message.de

WHO sees a BEACH BUNNY sobbing on a SHAG RUG?!

Received on Wednesday, 8 January 2003 02:52:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:53 GMT