only use setSelectionRange if supported

fixes #75