Essentially I'm trying to do a document.execCommand("Copy"), but some of the data I need to copy is located within href's. So I tried to replace the specific nodes of the document with simpler nodes, which could be copied directly, but this messes up the GUI. Then I thought I could simply clone the document, but Selection.addRange() can't find the range if it's not in the window.
I don't know if I'm simply taking the wrong approach, but if so, I can't seem to find the right one.
Any help is greatly appreciated.