lib/actions/balance.js
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;
}
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;
}
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 ; }
Returns possible selection ranges for given HTML node, from outer to inner
@param  {Node} node
@return {Range[]}
Returns possible selection ranges for given HTML node from outer to inner