← Back to release summary

Selection API: setBaseAndExtent() throws IndexSizeError for too large offsets

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

Summary

setBaseAndExtent() silently clamped too large offset values. IndexSizeError should be thrown for such values to match to Firefox, Edge, and the specification.

Standards & signals

View on chromestatus.com