eval ... everywhere?
Thursday, 7. September 2006, 11:51:48
document.body.eval('tagName');is practically the same as doing
with(document.body){eval('tagName');}(Before you ask, the best practice would be to say either
document.body.tagNameor
document.body['tagName']Using eval should be avoided and generally can be avoided without problems. So don't let me catch you using any of the two first snippets on a production site!)
So hey Gecko, where did this come from? Is it something we should copy and implement or something we should scorn and point fingers at?
I haven't tested, but if it's still present in Firefox 1.5, you should file a bug against Mozilla.
By dwright, # 7. September 2006, 12:27:00
By xErath, # 7. September 2006, 17:56:22
xErath: don't know - I have to check. That test suite was buggy when I tried running it in Opera, but that's a while ago and I reported some issues that probably got fixed.
By hallvors, # 7. September 2006, 18:37:20
By JibberJim, # 8. September 2006, 14:34:36
By hallvors, # 8. September 2006, 19:29:19
Shows "foobar" in a nightly (specifically Minefield 3.0a1/20060908). You should file that bug.
By dwright, # 9. September 2006, 14:46:28
By hallvors, # 10. September 2006, 16:17:05