Hi Riccardo,

SimpleWebKit has its own JS interpreter (ECMA-Script)...

https://git.goldelico.com/?p=swk.git;a=blob;f=Sources/ECMAScriptParser.h;h=df2117b53feb6bbc107ffe03a51d26a4ef57c321;hb=18944b0223a4a85c7f338f8dacce071f7fb0d97e

The main missing thing is how to manipulate the DOM tree objects and provide 
them to the JS language so that
a script can really modify what is being displayed.

And it has not been significantly tested and may be incomplete (haven't used it 
for years).

So to me it seems easier to fix issues than squeeze in a probably incompatible 
library API.

Well, there is another thing to be considered:
SWK is a WebKit including the WebDOMOperations and WebScriptObjects for JS.

I have never checked what the newer WKWebView has changed. It could be a 
completely new architecture.
So we might need a SWKWebView...

And finally there is now a JavaScriptCore framework.

So Apple seems to duplicate already existing functionality in multiple 
frameworks and it is not clear
if they are related or build on top of each other.

BR,
Nikolaus

> Am 13.12.2023 um 10:03 schrieb Riccardo Mottola <riccardo.mott...@libero.it>:
> 
> Hi Nikolaus,
> 
> H. Nikolaus Schaller wrote:
>> SimpleWebKit had all WebView interfaces to call JS and itself contains some 
>> incomplete JS (ECMA-Script) interpreter.
> 
> what do you think of integrating a light-weight JS interpreter library? I 
> wonder if at the backend of the parser this can be easily integrated.
> 
> Riccardo

Reply via email to