On 8/13/07, Gregory Maxwell gmaxwell@gmail.com wrote:
I didn't mean to cast my example as a JavaScript URL. Rather, it's intended to be an onclick event attached to a null (or optionally, user specified) anchor tag.
My understanding is that doing so is not considered evil at least in so far as using JS at all is not considered evil.
Your syntax confused me, sleepy-headed that I am. In fact, onclick and the like are also usually considered evil, for the same reasons Brion stated (except #3). If there is in fact a performance decrease in more extreme but not ridiculous cases, then of course it should be fixed even if the result is a bit ugly.