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:34:43 -0600
Message-ID: <3dbf932d050110083462cf0436@mail.gmail.com>
To: www-validator@w3.org

Last question.

I've put my js in external files

<script src="sss.js"><script/>

but when I run it through the validator it is still asking for type.

do I still need to include type="text/javascript" in the <script> tag?

Again, thank you for all of your help.

Brad


On Mon, 10 Jan 2005 16:19:02 +0000, David Dorward <david@dorward.me.uk> wrote:
> On Mon, Jan 10, 2005 at 10:10:56AM -0600, Brad M wrote:
> > Just so I understand... the <![CDATA[ and ]]> need to go right after
> > the opening and closing script tags respectivly?
> 
> Before the closing tag :)
> 
> But it gets rather more complex if you want to have backwards
> comptability with non-XML user agents (since they don't know what all
> that CDATA stuff is about and may try to treat it as JS).
> 
> Its usually better to follow the other bit of advice there and just
> use external .js files for your JavaScript.
> 
> --
> David Dorward                                      http://dorward.me.uk
> 
> 


-- 
Brad McIntyre
Received on Monday, 10 January 2005 16:35:15 GMT

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