2 <div id=
"start">xx
</div>
3 <div style=
"font-family: monospace">inline block inside selection root
</div>
7 var start
= document
.querySelector('#start'),
8 end
= document
.querySelector('#end');
9 getSelection().setBaseAndExtent(start
.firstChild
, 0, end
.firstChild
, 2);