code: function selectionSet (elem) {
    const sel = document.getSelection()
    const range = document.createRange()
    range.selectNodeContents(elem)
    sel.removeAllRanges()
    sel.addRange(range)
  }
docs: @param {Element} elem
  
  @return void