domJSON
domJSON copied to clipboard
When serialProperties is not false, .toDOM() produces multiple copies
Basically, it sets the serial propertie ("innerHTML", in this case), which writes HTML, and then does so again with the modified child nodes. Best way is to probably look at the meta data and avoid all serial information when creating nodes.