Re: Interesting thought

> If we could use DOM to uncomment javascript code, it could lead to high
> performance gains at the browser end.

I'm not sure I understand what you mean by "uncomment", and why it'd gain
you any performance.

As far as a DOM view of an HTML page is concerned, your example's all text
nodes. Removing the /**/ is entirely a string-processing operation, at this

You might want to take a look at the Bean Scripting Framework (BSF),
available on That's intended to be a fairly general
approach to invoking scripts on demand, in any of a variety of languages...
and javascript is one of those languages. Of course this requires that the
application recognize the text as a script and pass it to BSF for

Joe Kesselman  / IBM Research

Received on Tuesday, 29 February 2000 15:11:14 UTC