Re: [w3c/editing] EditContext: Should `selectionStart` and `selectionEnd` be upadeted when `updateText()` is called? (#343)

since we provide updateSelection() API, it's probably better we leave updating selection to the author, however, if the selection is out of bound after updateText(), i.e. after udpateText(), the text is 'abc', and the selection is (2,5), we should update the selection to (2,3) to keep it valid.

-- 
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/343#issuecomment-964832820

Received on Wednesday, 10 November 2021 06:46:39 UTC