relevance / blue-ridge

Framework for JavaScript Testing (currently a Rails Plugin)
http://groups.google.com/group/blueridgejs
MIT License
480 stars 40 forks source link

Feaure: Cloning the DOM to ensure transactions #31

Open kristianmandrup opened 14 years ago

kristianmandrup commented 14 years ago

I just watched Dr. Nics talk on Blue Ridge. He said what was missing was a way to clone the DOM before each test. Couldn't you just use the Javascript DOM method: Node.cloneNode(true) to clone the node and all its children?