Consider the following HTML:
<div><span>a</span><span>b</span><span>c</span></div> <div><span>1</span><span>2</span><span>3</span></div>
You can not surround across divs. So it is not possible surround b,c,1 spans
<span>b</span><span>c</span></div> <div><span>1</span>