← Back to release summary

INPUT element: selectionDirection, selectionStart, and selectionEnd attribute getters should not throw

Category
DOM
Type
New or changed feature
Status
Enabled by default (Chrome 58)
Intent stage
None

Summary

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.

Standards & signals

View on chromestatus.com