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.


Working draft or equivalent

Status in Chromium


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.


Search tags

HTML, Forms,

Last updated on 2020-11-09