Hi guys, A while back Nick Thompson posted about some of the stuff we're doing at Metaweb with Rhino. As part of that, we've put together a wrapper around the org.w3c.dom.* interfaces in the java standard library for Rhino. With this, plus use of a DOM parser we're able to get a DOM api that complies with the ECMAScript bindings for the DOM defined by the w3c, and gets around the security issues related to liveconnect.
I got the ok just now to release the code for rhinoDOM. It can be had at http://repo.or.cz/w/rhinodom.git It's a pretty mechanically implemented wrapper around most of the apis, plus some helper code for making it easy to instantiate rhino host objects from java. Formally it used the JAXP DocumentBuilder APIs to get a Document object to wrap in the DOMParser object, but we ran into some problems with being able to use our LineCounting extension to the Xerces parser without having to entirely reimplement the DocumentBuilder. That being said, it would be easy to bring that support back if someone wants a generic way to use an alternative DOM parser. Xerces is a very strict XML parser (and indeed I disable a bunch of its functionality just to get it to be usable where we use it), so it is unlikely to be helpful out of the box for dealing with HTML, but with a new parser plugged in that could change. I hope this is of use to some people, and thanks for making Rhino possible! Alex _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
