http://www.perlmonks.org?node_id=761303


in reply to SpiderMonkey and JS

As far as I can tell there's no connection between the SpiderMonkey object and your LWP request. In other words your document.getElementById is being applied to an empty DOM tree, NOT to the document you retrieved with LWP.

I had a brief look through the SpiderMonkey documentation you linked, and I don't immediately see a way to feed it an HTML document.