I think perhaps we do need to say something on the relevant MDN pages. We do say "HTML inputs provide simpler helper APIs for working with selection (see HTMLInputElement.setSelectionRange())." But perhaps we should say something like "HTML inputs provide simpler helper APIs for working with selection (see HTMLInputElement.setSelectionRange()). In fact, the Selection API was not designed for selecting text inside input <elements>, trying to do so will not work reliably across browsers." ? I am not 100% sure. Thoughts welcome.
Bug 1527627 Comment 7 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
I think perhaps we do need to say something on the relevant MDN pages. We do say "HTML inputs provide simpler helper APIs for working with selection (see HTMLInputElement.setSelectionRange())." But perhaps we should say something like "HTML inputs provide simpler helper APIs for working with selection (see HTMLInputElement.setSelectionRange()). In fact, the Selection API was not designed for selecting text inside input elements; trying to do so will not work reliably across browsers." ? I am not 100% sure. Thoughts welcome.