2 <div style=
"display: flex; background-color: #ddd; font-size: 24pt">
3 <div style=
"width: 100px">
4 <span id=
"a">aaaa
</span><br>
5 <span id=
"b">bbbb
</span>
7 <div style=
"width: 100px">
8 <span id=
"c">cccc
</span><br>
9 <span id=
"d">dddd
</span>
14 var b
= document
.querySelector('#b'),
15 d
= document
.querySelector('#d');
16 getSelection().setBaseAndExtent(b
.firstChild
, 0, d
.firstChild
, 2);