← Back to release summary

Selection API: addRange() ignores additional Ranges

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

Summary

In a case where document already has text selection and Selection.addRange() is called, Blink merges the Range and the existing text selection into one if they have overlap, and does nothing otherwise. We'll change it so that Blink always ignore the Range. It matches to Edge.

Standards & signals

Docs: https://github.com/w3c/selection-api/issues/80 https://developer.mozilla.org/en-US/docs/Web/API/Selection/addRange

View on chromestatus.com