Jresig's env.js is very incomplete i'm afraid. I think he
did close to the minimal amount necessary to make it
run the jquery test suite.
I think this because i extended env.js to run parts of the mjt
test suite and it was still a woefully incomplete browser
implementation. There has been more recent work on env.js that
i haven't followed, somebody forked it or maybe continued
development somewhere in jquery svn? But it's a big project.
The httpunit people are on the front lines of this one with an
impressive rhino-based browser emulator, and it's complicated.
In the end i realized that i didn't actually want most browser
features on the server. It's a very different world when you
are delivering static chunks of html instead of manipulating a
live on-screen document. Note well that people doing server-side
php or whatever don't use anything resembling DOM or XHR - because
template languages and synchronous i/o models are better tools
for generating static pages. The browser dom has one advantage,
which is that it allows dynamic behavior (though even then you need
jquery to write reasonably expressive dom manipulation code).
That said, rhino users would benefit from some standard libraries for
http requests and html/xml parsing. Maybe "extension" is a better term
than "library" because most of it would be glue to existing java
libraries...
nick
Terry Braun wrote:
> John Resig - ejohn.org - implemented some html, web simulator that
> might help do what you want.
>
> Martin Honnen wrote:
>> Michael Bodin wrote:
>>
>>
>>> "Cannot find function getElementById"?
>>>
>>> am I dong something wrong or isn't getElementById implemented yet? (is this
>>> possible to do in this way?)
>>>
>> The script engine does not implement DOM methods like getElementById.
>> The script engine implements the JavaScript core language as documented
>> here: http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference
>>
>>
> _______________________________________________
> dev-tech-js-engine-rhino mailing list
> [email protected]
> https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino