[w3c/editing] When EditContext.updateSelection is called with offset between a surrogate pair, what should happen? (Issue #381)

Options:
1. Align to start and/or end of surrogate pair(s)
2. Throw an exception
3. Do nothing

Perhaps, #1 is reasonable. If `selectionStart` is middle of a surrogate pair, align to start (or end?) of the surrogate pair. If `selectionEnd` is middle of a surrogate pair, align to end (or start?) of the surrogate pair. (but if the range is collapsed in a surrogate pair, this logic extends the range, perhaps, this would cause unexpected behavior.)

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing/issues/381

Received on Monday, 13 December 2021 12:27:11 UTC