For input types which don't support text selection API, we have thrown InvalidStateError. The specification was changed so that null is returned in such case.

Specification

Working draft or equivalent

Status in Chromium

Blink>Forms


Enabled by default (tracking bug) in:

  • Chrome for desktop release 58
  • Chrome for Android release 58
  • Android WebView release 58

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Owner

Search tags

HTML, Forms,

Last updated on 2020-11-09