W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2007

Error in http://www.w3.org/TR/2002/REC-xhtml1-20020801

From: Hills, Samuel W. (SSC-NASA)[Jacobs Technology] <Samuel.W.Hills@nasa.gov>
Date: Fri, 14 Sep 2007 15:10:35 -0500
Message-ID: <FC0301B9EBE2CC44A4D3157021D437E60A1310@NDMSEVS32A.ndc.nasa.gov>
To: <www-html-editor@w3.org>
Dear sirs,

There is an error in http://www.w3.org/TR/2002/REC-xhtml1-20020801.

The example 'correct' code in sec. 4.8 does not work in either Firefox or IE.  Both browsers throw a JavaScript error for the <![CDATA[ tag.

The following corrected version does work in both browsers (note the '//' in front of the CDATA tag and its closing tag):

<script type="text/javascript">
//<![CDATA[
.... unescaped script content ...
//]]>
</script>

Please make this correction in the next edition.
Received on Sunday, 16 September 2007 23:36:56 GMT

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