Commit 4454455d4d9af8c8c0690cb55d81ad5af6d19157
improved html snipping
dust committed on 4/8/2016, 5:42:41 AMParent: 7d8e96ebc6286e434c1ea3492028edf9b3e392f4
Files changed
chromium/serializeSelectedHTML.js | changed |
chromium/serializeSelectedHTML.js | ||
---|---|---|
@@ -278,11 +278,7 @@ | ||
278 | 278 | } |
279 | 279 | |
280 | 280 | var selectionDiv = document.createElement('div') |
281 | 281 | var selection = window.getSelection().getRangeAt(0) |
282 | -var startNode = selection.startContainer.parentNode.cloneNode(true) | |
283 | -var endNode = selection.endContainer.parentNode.cloneNode(true) | |
282 | +selectionDiv.appendChild(selection.cloneContents()) | |
284 | 283 | |
285 | -selectionDiv.appendChild(startNode) | |
286 | -selectionDiv.appendChild(endNode) | |
287 | - | |
288 | 284 | Snapshooter(selectionDiv) |
Built with git-ssb-web