Re: [selection-api] Need to be able to tell if the caret is displayed at the beginning or the end of the line (#32)

For that, we probably need to add a new event with a sequence of `Range` objects and a boolean indicating the caret is before or after the line wrap if the range is collapsed (i.e. selection is caret), and probably add a new method on `Selection` like `setCaretPosition(Node node, unsigned long offset, bool beforeLineWrap)` that specifies whether the caret should appear before the line wrap or not if the specified DOM position happens to be at a line wrap.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/32#issuecomment-109202450

Received on Friday, 5 June 2015 08:26:45 UTC