xhtml compliant javascript

Discussion forum for MOD Writers regarding MOD Development.
Locked
pixel001
Registered User
Posts: 100
Joined: Thu Aug 23, 2007 11:38 am

xhtml compliant javascript

Post 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 ?
User avatar
Brf
Support Team Member
Support Team Member
Posts: 52169
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: xhtml compliant javascript

Post by Brf »

That guideline applies to <script> blocks, not to inline code in event tags.
User avatar
igorw
Former Team Member
Posts: 8024
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: xhtml compliant javascript

Post 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.
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
Locked

Return to “[3.0.x] MOD Writers Discussion”