6 border:
1px solid blue;
12 vertical-align: bottom;
14 section.nosel::selection {
15 background-color: transparent;
23 Everything in this box should be selected and the text
26 <section class=
"nosel">
27 Nothing in this box should be selected and the text
31 Everything in this box should be selected and the text
36 var selection
= window
.getSelection();
37 var range
= document
.createRange();
38 range
.selectNodeContents(document
.body
);
39 selection
.removeAllRanges();
40 selection
.addRange(range
);