3

I want to parse an html file/string into a DOM/tree structure. And preferably later to modify the tree and regenerate the marked up HTML.

This has to be in pure javascript from a standalone v8 interpreter.

jQuery is an obvious choice but it seems to be browser only There is some info on how to do this in node.js e.g. Can I use jQuery with Node.js?

THis answer seems to rule out jsdom on v8 How to load a nodejs module in PyV8?

Has anyone got a working combination with standalone v8 ?

I am a js newbie but i am already parsing/re-generating js code using esprima/escodegen on v8 which works very nicely....

Community
  • 1
  • 1
Y A
  • 33
  • 4
  • According to this post you could use dom.js: http://stackoverflow.com/a/9726383/1427115 – Jonas Jul 11 '13 at 19:17

0 Answers0