What's new? | Help | Directory | Sign in
Google
trimpath
TrimPath ajax / javascript projects
  
  
  
  
    
Search
for
Updated Jul 06, 2007 by steve.yen
InelegantJavaScript  

Inelegant JavaScript

A collection of bad things about JavaScript, such as buggy language implementation gotchas and quirks, especially in browsers. -- SteveYen

URL code Mozilla/Firefox IE
javascript:"a${b}c".split(/(\$\{[^\}]+\})/g) a,${b},c a,c
javascript:"a${b}".split(/\$\{[^\}]+\}/g) a, a
javascript:"${b}c".split(/\$\{[^\}]+\}/g) ,c c
javascript:"a${b}${c}d".split(/\$\{[^\}]+\}/g) a,,d a,d

URL code Mozilla/Firefox IE
javascript:function(){return 111} nothing! nothing!
javascript:(function(){return 111}) function () { return 111; } nothing!
javascript:eval("function(){return 111;}") nothing! nothing!
javascript:eval("var s=function(){return 111};s") function () { return 111; } function(){return 111}

DOM Related Quirks

See also: ElegantJavaScript


Comment by vishal.khanwalkar, Jul 16, 2007

Comment by thebillmac3, Feb 10, 2008

<<Be wary of using undefined global variables in IE Another blog entry from Eric Lippert explains why.>>

Link is broken, but I think this is it:

http://blogs.msdn.com/ericlippert/archive/2006/05/04/590030.aspx