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

2784SV: [jslint] Re: Bad HTML string?

Expand Messages
  • douglascrockford
    Feb 3, 2012
      --- In jslint_com@yahoogroups.com, "Merlin" <g7awz@...> wrote:
      > --- In jslint_com@yahoogroups.com, "Jakob Kruse" <kruse@> wrote:
      > > > It appears that JSLint is retaining state from one run to the next.
      > > In case of internal errors, yes.
      > > > The web and Widget Tester versions both fail, but not quite in the same way.
      > > Actually, they fail in exactly the same way, but the error message given for this error by different JavaScript runtimes differs. Try running the web validation in Chrome for instance, and you will get a third error message.
      > Confirmed:
      > In Chrome:
      > Error:
      > Problem at line 7 character 22: Cannot read property 'at' of null

      Thanks. Please try it now.

      And by the way, in case anyone has been reading this thread,

      function quote(s) {
      return '"' + s + '"';

      is a dangerously insecure function. It should be removing or entityifying all '"' and '\\' in s before concatenating.
    • Show all 6 messages in this topic