From: Eric Shulman <elsdes...@gmail.com>
Date: Sat, 5 Jan 2008 07:06:15 -0800 (PST)
Local: Sat, Jan 5 2008 10:06 am
Subject: Re: bug in Safari? eval scope / context
> Changing the use of eval() is sound, although as a word of warning,
Actually, while the suggested change may seem innocuous, it will
> I've found in the past that this is an area that's extremely hard to > change without breaking existing plugins on some browser or another > (sometimes quite subtly). In the past, we did at one point try a > slightly different approach of something like: > window.eval("function() {" + tiddler.text+ "}();");
> The idea was to better isolate plugins, and also to enable them to
create serious problems for existing plugins: MANY bits of javascript code assume that something like this:
This usage could be corrected by re-writing each plugin so that
As the author (and maintainer) of nearly 160 plugins and scripts, the
-e
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||