blob: 2f45cdcd75af95825ec63b5e6b71f1696d6e11a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
#highlighted {
background: yellow;
}
</style>
<body><span id="highlighted">This should be yellow, <span id="selected">this should mix with the
selection,</span></span> this should have no background.
<script>
getSelection().setBaseAndExtent(selected, 0, selected, 1);
</script>
|