code: function selectionRangesForHTMLNode(node) {
  	const ranges = [new Range(node.start, node.end)];
  	if (node.close) {
  		ranges.push(new Range(node.open.end, node.close.start));
  	}
  
  	return ranges;
  }
docs: Returns possible selection ranges for given HTML node, from outer to inner
  @param  {Node} node
  @return {Range[]}