Page 1 of 1

xhtml compliant javascript

Posted: Tue Dec 30, 2008 10:42 am
by pixel001
hi,

i read on the web and in the coding guidelines that javascript should be wrapped in a CDATA tag inside a script tag on top of the html page, or put into an external js file.

however, ive got some links on my page that have a mouseover effect, using Overlib. since the href is created dynamically, and the javascript is in the href, how would this work?

on a side note, does your mod need to pass w3c validation in order to get approved for Moddb ?

Re: xhtml compliant javascript

Posted: Tue Dec 30, 2008 12:30 pm
by Brf
That guideline applies to <script> blocks, not to inline code in event tags.

Re: xhtml compliant javascript

Posted: Tue Dec 30, 2008 1:48 pm
by igorw
pixel001 wrote:on a side note, does your mod need to pass w3c validation in order to get approved for Moddb ?
We note these things, but we won't deny if that's the only issue - if the MOD works. This may vary from case to case though. For example if it doesn't work in all browsers.