Skip to search.
jslint_com · JSLint.com

Group Information

  • Members: 502
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Messages

  Messages Help
Advanced
escape()   Message List  
Reply Message #906 of 2891 |
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().
What do you think?

Thanks,
-Dom


[Non-text portions of this message have been removed]




Fri Sep 11, 2009 12:40 pm

happygiraffe...
Offline Offline
Send Email Send Email

Message #906 of 2891 |
Expand Messages Author Sort by Date

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...
Dominic Mitchell
happygiraffe... Offline Send Email
Sep 11, 2009
12:40 pm

... Depending on the options you choose, you current get either Error: Implied global: escape or Error: Problem at line 1 character 1: 'escape' is not defined....
douglascrockford
douglascrock... Offline Send Email
Sep 11, 2009
7:38 pm

... Because it's quite likely that people would simply add /*global escape */ and carry on. Whereas a specific warning that escape() should be replaced by...
Dominic Mitchell
happygiraffe... Offline Send Email
Sep 12, 2009
11:48 pm

... I agree with Dom that adding a suggestion to use encodeURIcomponent would be helpful, especially in light of its security implications. - philip...
pipwerks Offline Send Email Sep 13, 2009
7:08 am
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help