Hi! I have a small question concerning Rhino.. namely, i would like it to run javascripts from webpages with it, but i can't as it doesn't have the objects predefined in browsers like "navigator", etc. Is there any way to work around this? Has Rhino really never been used in web context (i mean, for the very task javascript was invented for => manipulating DOM trees)? (Let me briefly explain: for what i'm trying to do, it doesn't really have to **work** (yeah that sounds ironic : D)... i mean.. i would like to *simulate* the way browser runs javascripts, and i'm really interested only in syntactical/semantical correctness of the scripts, not the results of the execution. What i have in mind is basically a an automatic javascript analyzer/validator that would automatically tell me that "dude, you probably use an undefined function here! please double-check it", or sthg like that (missing semicolons and all other trivial stuff can caught with JSLint, but that's not quite enough.. i need some semantical analysis as well).
(Why i'm thinking about Rhino is that it's Java and source seems very nice and well-engineered.. i'm really not a C developer, i'd go gray before i'd get this done with some C engine like V8 or SpiderMonkey) Cheers, Sander _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
