Hi, On Fri, May 15, 2009 at 02:35:10AM +0800, ?? ? wrote:
Hello all
After I successful build and running dillo-2. I pay more attention on how JavaScript support on dillo. There are some discussion on mailing list and useful information.
http://lists.auriga.wearlab.de/pipermail/dillo-dev/2008-October/005065.html http://lists.auriga.wearlab.de/pipermail/dillo-dev/2009-April/006280.html
As dillo is fast and small footprint. Things like JavaScript should not be affect overall performence.
What we need ? 1.JavaScript parse engine. I personally prefer SEE (simple ECMAScript Engine). Light weight and seems maintained
2.Document Object Model. We have to all objects and that's relate with engine and browser. An really huge task ... More important how to combine it into dillo ?
I guess it could be combined with the Doctree (src/doctree.hh) which is currently used for CSS only. Note, that it's actually just a stack atm.
hard code into or by DPI ?
As I'm new to dillo, I don't know you guys interesting about this. So I decide to do an small experiment to implement JavaScript support with libSEE + Boehm-GC. Get patch here
http://tw.myblog.yahoo.com/stevegigijoe/article?mid=145&prev=-1&next=138
******
Modify configure.in to check libsee and gc
DOM Supports
document.write() document.getElementById() document.forms.length document.[form name].length document.[form name].method document.[form name].reset() document.[form name].[input name].value
Input HTML scripts and *.js from url
run onClick script before submit
******
Take it as an study case. Any discussion & suggestion is welcome
Excellent! I couldn't look into it in detail yet, but it's great that you have some real code here so we can get a picture of how it could work in the future. Cheers, Johannes