Re: Cougar DTD: Do not use CDATA declared content for SCRIPT

\\ In common practice I am seeing:
\\ 
\\ <SCRIPT>
\\ <!--
\\ write whatever you want here
\\ -->
\\ </SCRIPT>
\\ 
\\ This has the advantage of removing the problems with CDATA and end tags.
\\ It also ensure that the scripts will be invisible to older browsers.
\\ It has the disadvantage of putting your scripts into comments.
\\ 
\\ Jon Smirl
\\ jonsm@aol.com

One has to wonder if even that is safe. The problem is that with SGML a
comment is terminated at a --, when encountered, rather than with a
-->. So, if I had a -- in my script, that should technically terminate the
script. Not very safe, especially if you decide to use SGML tools (such as
a validator) for working with your documents.

Sunil

Received on Wednesday, 24 July 1996 18:42:12 UTC