Open SatsukiRyu opened 3 months ago
This designed homebrew development, not websites, so it would take a while to modify it to work with the HTML. Also most (as in nearly all) websites with JavaScript are extremely complicated, which would not be feasible for the 3DS to run. I'm not a maintainer so correct me if I'm wrong
Yeah. Looks interesting, but the process of integrating into the browser would be tough.
Even so, any JS interpretation would be better than nothing. Netsurf has a built-in interpreter called "Duktape" that might be easier to implement. However, I haven't been able to get it to compile, so it isn't included in the current build.
There are a few other things that I want to implement first, though. Particularly fonts.
3DS default browser has support for some javascript. Since the 3ds browser is webkit, maybe a form of the webkit javascript could be adapted to NetSurf 3DS
I think the better idea would be to port duktape, who knows what limitations the existing one has? if it'll use the existing libraries it might end up hitting the same limitations as the official 3ds browser... not sure tho
duktape is still not designed to work with a browser - it's designed for you to use it like MicroPython or Node.js and write standalone applications. But NetSurf (not the 3DS port) does have basic JavaScript support, so maybe that could be ported over:
At present, NetSurf has only primitive and incomplete support for JavaScript, which we disable by default. Without JavaScript, NetSurf is able to provide access to most of sites on the World Wide Web. Some sites, however, will not display correctly or be unworkable due to heavy reliance on this standard.
Full JavaScript is support is planned but we are currently a long way off achieving it. Many things need to be done before complete JavaScript support can be considered, such as changing our web page layout engine to handle dynamic changes being made to the page. JavaScript support will require a huge amount of work to complete. If you are keen to help out please visit the developer and contributor area.
To my knowledge, it seems like it would be much easier to get that working then to modify heavily modify duktape or something similar
If any Javascript is gonna be implamented Wolfyxon's website should be made compatible first.
If any Javascript is gonna be implamented Wolfyxon's website should be made compatible first.
The website you linked requires JavaScript, how is it possible to be supported before JavaScript is added? :confused: Also the PC version of NetSurf doesn't support that site either. It's not impossible obviously (since the official web browser supports it), but it would take a lot of work
The website you linked requires JavaScript, how is it possible to be supported before JavaScript is added?
I ment when Javascript is added.
The javascript interpreter can be found on https://github.com/Symbitic/CTRJS