index.js
function createRangeFromNode(node) {
  var range = node.ownerDocument.createRange()
  try {
    range.selectNode(node)
  } catch (e) {
    range.selectNodeContents(node)
  }
  return range
}
function createRangeFromNode(node) {
  var range = node.ownerDocument.createRange()
  try {
    range.selectNode(node)
  } catch (e) {
    range.selectNodeContents(node)
  }
  return range
}
function createRangeFromNode ( node ) { var range = node . ownerDocument . createRange ( ) try { range . selectNode ( node ) } catch ( e ) { range . selectNodeContents ( node ) } return range }
create and return a range that selects `node`
create and return a range that selects node