- From: Brad M <braddm@gmail.com>
- Date: Mon, 10 Jan 2005 10:10:56 -0600
- To: www-validator@w3.org
Hi David.
I've read through your second url link.
Just so I understand... the <![CDATA[ and ]]> need to go right after
the opening and closing script tags respectivly?
The <![CDATA[ is needed so that the browser doesn't get confused on
some of the characters like "<" and "&".
Thanks again,
Brad
On Mon, 10 Jan 2005 15:53:57 +0000, David Dorward <david@dorward.me.uk> wrote:
> On Mon, Jan 10, 2005 at 09:42:26AM -0600, Brad M wrote:
>
> > The errors occur between my <script type="text/javascript"></script>
> > tags.
> >
> > I have added <!-- and --> inside the script tags.
>
> You are using XHTML, therefore <script> no longer contains implicit
> CDATA.
>
> http://w3.org/TR/xhtml1/#h-4.8
>
> As a result your comment is a real comment (although you won't notice
> the effect since you are serving your XHTML as HTML/tag soup instead
> of as XML ...
>
> http://www.w3.org/TR/xhtml-media-types/
>
> ...) your script would really be commented out. Except that you can't
> use a double dash inside a comment ...
>
> http://w3.org/TR/html4/intro/sgmltut.html#h-3.2.4
>
> A common error is to include a string of hyphens ("---") within a
> comment. Authors should avoid putting two or more adjacent hyphens
> inside comments.
>
> --
> David Dorward http://dorward.me.uk
>
>
--
Brad McIntyre
Received on Monday, 10 January 2005 16:11:28 UTC