Simplification of lines 297-302:

```js
if (node.get('nodeType') === Node.TEXT_NODE) {
    sel.selectNode(node, true, node.get('length'));
}
```