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

> Need API to specify where exactly the caret is rendered at line wraps. document.getSelection().getRangeAt(0).getClientRects()[0] fails in this case.

In that case `getClientRects()` returns two places: one at the start of the line and one at the end, so we would want an inditation of which of the two corresponds to the actual visual drawing of the caret, right? To me it would be fine to add this information to the dictionary this function returns to the user, or alternatively to do it some other way. @rniwa and @kojiishi What would be the least intrusive for you?

For setting the caret as near as possible to  `point(X, Y)` what could we get?

> Reuse UA selection changing mechanisms also, but avoid placing caret in some of the positions.
 * Cannot use the Selection API because it does not play nice with UA selection mechanisms, e.g. resets the magic X coordinate in UP/DOWN caret movement. 

Things like this make me think that probably the default caret movement browsers include will be overwritten entirely by libraries anyway. 

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

Received on Saturday, 30 May 2015 12:30:41 UTC