handle elements that throw errors on selectionStart/selectionEnd

(like input type=“date”)
0.3.7