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

907Re: escape()

Expand Messages
  • douglascrockford
    Sep 11, 2009
      --- In jslint_com@yahoogroups.com, Dominic Mitchell <dom@...> wrote:
      > Would it be possible to get JSLint to warn if you call the escape()
      > function? The bad behaviour of this function has caused me problems this
      > morning. It encodes characters as %uXXXX instead of UTF-8 bytes. Plus, it
      > doesn't handle plus characters. I think that most instances of this
      > function should be replaced by encodeURIComponent().

      Depending on the options you choose, you current get either


      Implied global: escape



      Problem at line 1 character 1: 'escape' is not defined.

      Why isn't that sufficient?
    • Show all 4 messages in this topic