Loading ...
Sorry, an error occurred while loading the content.

3173Re: JSLint and HTML

Expand Messages
  • benquarmby
    Mar 16, 2013
    • 0 Attachment
      Does this mean anything for the CSS parser?

      Any plans to refine JSLint down to JavaScript / JSON only?

      --- In jslint_com@yahoogroups.com, "douglascrockford" <douglas@...> wrote:
      > When I began JSLint in 2001, the usual practice in web applications was to include inline scripts and event handlers in HTML. So JSLint includes an HTML parser so that it can locate and inspect the embedded scripts.
      > Since then, we have determined that embedding JavaScript in an HTML file is a very bad practice. It is bad from a performance standpoint because gzip and caching are not possible. It is bad from a security standpoint because of the XSS hazard. CSP cannot be effective unless you strictly follow the good practice of segregating scripts.
      > Since the purpose of JSLint is to promote good practice, I will be removing JSLint's HTML parser.
    • Show all 13 messages in this topic