var endsAfter = span.to == null || (marker.inclusiveRight ? span.to >= startCh : span.to > startCh);