[w3c/editing] It might help to write clearer code, if EditContext would have some attributes (Issue #378)

* `selectionIsCollapsed` (`true` if `selectionStart == selectionEnd`)
* `selectionLength` (the value of `selectionEnd - selectionStart`)
* `compositionRangeIsCollapsed` (`true` if `compositionRangeStart == compositionRangeEnd`)
* `compositionRangeLenth` (the value of `compositionRangeEnd - compositionRangeStart`)

Not strong opinion, I just wondered.

-- 
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/378

Received on Monday, 13 December 2021 05:37:30 UTC