Valdis.Kletnieks(a)vt.edu writes:
On Mon, 15 Nov 1999 08:39:47 EST, William M. Perry said:
> So, does anyone want to help get javascript working in Emacs & XEmacs?
> I was looking at the netscape javascript source, and it comes with a
> Perl -> JavaScript glue layer that might be a good starting point. It
> allows calling Perl from JavaScript and vice versa.
>
> Increasingly, getting javascript'd web pages to even display correctly
> in w3 is hellish. :(
And getting Javascript to work securely is equally hellish. Look at the
number of bugs both Netscape and Microsoft have had with their browswers.
Yeah, but we're better than that. :)
Does anybody seriously think that they can Get It Right layering
Javascript on top of a general-purpose interpreter like Elisp?
It wouldn't be layered on top of it, at least the way I imagined it. I
considered converting the javascript to elisp and then just eval'ing it,
but that would leave you really wide open to bad things.
The non-core classes in javascript could be written in elisp, registered
with a real javascript parser, and then you could just have a
(javascript-eval ...) function. You'd have to be able to create multiple
parser instances, but that would be pretty easy.
Please, if you do this, I want a flag that *disables* Javascript,
period,
end of discussion....
But of course. There is already the w3-do-scripting variable that disables
the emacs-lisp scripting that is in there. Don't worry, it is disabled by
default, and has basic safety guidelines. :)
-bp