javascript non w3 compliant

Discussion in 'HTML & Website Design' started by mcdeere02, Aug 7, 2009.

Thread Status:
Not open for further replies.
  1. #1
    Hi guys,

    I recently came across an issue that im sure some of you know about have dealt with and now consider a very easy thing to sort out,

    basically im wishing to keep every website i do w3 compliant something i think is critically important as a designer, before now I hadnt included used any javascript, on my first go at using it, i tried to check my web site was still w3 compliant, irritatingly it wasnt, am i doing something basic wrong.

    is there an issue with keeping javascript as w3 compliant, or is it just not possible ?

    many thanks
     
    mcdeere02, Aug 7, 2009 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You didn't post what exactly the problem is.

    You ran a site with Javascript through the HTML validator? Or you ran the Javascript through JSLint? The w3c has rules for the DOM I guess but scripts can be anything really.

    Or, you can post the url of the validator showing the errors so we know what you're talking about.
    A common problem is <script language=javascript> since the language attribute is deprecated for script tags. Use type="text/javascript" for script tags... though you might also want to read this if you've run across the application/x-javascript or other things in those tags: http://annevankesteren.nl/2005/02/javascript-mime-type
     
    Stomme poes, Aug 7, 2009 IP
Thread Status:
Not open for further replies.