W3C compliance and javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rick Merrill

    W3C compliance and javascript

    Is there a web site that checks a page's
    compliance with Javascript standards?

    Or better yet, helps debug it?!
  • VK

    #2
    Re: W3C compliance and javascript

    On Mar 13, 1:36 am, Rick Merrill <rick0.merr...@ NOSPAM.gmail.co m>
    wrote:
    Is there a web site that checks a page's
    compliance with Javascript standards?
    >
    Or better yet, helps debug it?!
    One of options could be JSLint:
    JSLint, The JavaScript Code Quality and Coverage Tool. This file allows JSLint to be run from a web browser. It can accept a source program and analyze it without sending it over the network.

    Comment

    • Richard Cornford

      #3
      Re: W3C compliance and javascript

      Rick Merrill wrote:
      Is there a web site that checks a page's
      compliance with Javascript standards?
      The only javascript standard is ECMA 262 (or the ISO versions of the same)
      (note that the W3C has nothing to do with the javascript language
      standards). The only way in which javascript source code can fail to comply
      with the standard is to contain syntax errors. And script code that contains
      syntax errors will cause many common web browsers to report those syntax
      errors (in one way or another) and not even attempt to execute the script.
      Or better yet, helps debug it?!
      Reports of syntax errors are helpful for debugging (as they will have to be
      fixed prior to anything else either working or not working).

      Richard.


      Comment

      Working...