10 biggest JS pitfalls

Axel Rauschmayer axel at rauschma.de
Sun Dec 30 14:50:18 PST 2012


Yes, tripped me up a few times. Then I remember to use a regular expression with a /g flag as the first argument. I wouldn’t consider it a major pitfall, but it is definitely a pitfall.

On Dec 30, 2012, at 23:06 , gaz Heyes <gazheyes at gmail.com> wrote:

> I'd say String.replace needs to be there:
> http://blog.mindedsecurity.com/2010/09/twitter-domxss-wrong-fix-and-something.html
> http://www.thespanner.co.uk/2010/09/27/string-replace-javascript-bad-design/
> 
> Also the fact that no built in html encode/decode exists.

-- 
Dr. Axel Rauschmayer
axel at rauschma.de

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121230/3a6b851a/attachment.html>


More information about the es-discuss mailing list