Hello Adepters,
Can I convert a DOM DocumentFragment into a markup string? I'm looking
for an equivalent to ARange.toMarkupString() on a DocumentFragment
object, but it doesn't seem to exist. Alternatively, can I convert a
DocumentFragment to an ARange?
About a year ago I asked a related question, and Clay suggested using
the document.createRange() and range.selectNode() methods to convert a
DocumentFragment into a ARange, but I can't get it to work: