Efficient way to copy a collection of Nodes, treat them, and then serialize?
- by Danjah
Hi all,
I initially thought a regex to remove YUI3 classNames (or whole class attributes) and id attributes from a serialized DOM string was a sound enough approach - but now I'm not sure, given various warnings about using regex on HTML.
I'm toying with the idea of making a copy of the DOM structure in question, performing:
var nodeStructure =…