W3C home > Mailing lists > Public > www-validator@w3.org > January 2005

Re: [VE][387] Error Message Feedback

From: Brad M <braddm@gmail.com>
Date: Mon, 10 Jan 2005 10:10:56 -0600
Message-ID: <3dbf932d050110081017bec42@mail.gmail.com>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT