git ssb

3+

dust / capsule



Commit 4454455d4d9af8c8c0690cb55d81ad5af6d19157

improved html snipping

dust committed on 4/8/2016, 5:42:41 AM
Parent: 7d8e96ebc6286e434c1ea3492028edf9b3e392f4

Files changed

chromium/serializeSelectedHTML.jschanged
chromium/serializeSelectedHTML.jsView
@@ -278,11 +278,7 @@
278278 }
279279
280280 var selectionDiv = document.createElement('div')
281281 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())
284283
285-selectionDiv.appendChild(startNode)
286-selectionDiv.appendChild(endNode)
287-
288284 Snapshooter(selectionDiv)

Built with git-ssb-web