While I'm writing to a textarea, text input or working in an iframe, "select all" only selects the text what's inside them.  

I need to reach this kind of behaviour with a div (using CSS or JavaScript).

In a nutshell:

```
I shouldn't be selected on select all.
<div id="box">
I should be selected on select all.
</div>

```

*I'm working on a custom confirmation box in JavaScript and it would be weird if I click "select all" in the context menu or press Ctrl + A and select everything on the page: [simplified fiddle](https://jsfiddle.net/bx3h8a31/).*