I am using a fuzzer called nduja which is written in Javascript embedded in html body. It creates random dom tree on the fly with every refresh but sadly the html state cant be saved.
It creates dom tree but I dont know how to convert that dom tree to html. (Debugged it in firebug and I am able to see changing value for dom tree on every refresh but html code remains same)
I want to convert that dom tree to html on the fly as even in run-time the source code of html is still same.
I am novice in javascript thus seeking your precious help in this regard.
Note to mods: Please reject it if you find it is a vague question, I tried searching it but coudnt get a specific answer to this query
In the question Saving the DOM as HTML after modification there is one solution to your problem: