Re: [editing-explainer] What browser internals can be exposed to help us move the caret in (and against) the block direction? (#56)

@rniwa : I agree that there is some ambiguity if we use the range. This is a more general problem that should be addressed by the Selection API spec. This occurs every time when the script sets the selection.

But in the case of `beforeselectionchange` the UA already knows the user intention so it can use this information to disambiguate. For example, if the intent is `caretLineEnd` it would choose the position before line wrap.

If the script requires a finer control it can call directly the (improved) Selection API.




---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/editing-explainer/issues/56#issuecomment-106697201

Received on Friday, 29 May 2015 05:48:11 UTC