is there a standard / easy way to serialize the DOM Range (and IE equivalent) with a java script.
The motivation is to keep the current selection of the document along with its HTML code.
I was thinking of using XPath for this, but before I start reinventing the wheel, something might already be working, and I just couldn't find it (a jQuery-based solution would be best).
source share