- From: Brad M <braddm@gmail.com>
- Date: Mon, 10 Jan 2005 10:34:43 -0600
- 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 UTC