RE: Default Caret and Selection Positioning Spec?

> Ben, do your connections with the Office team mean we could find somebody
> knowledgeable to clue us in on what they feel is the "proper" behavior of
> the caret in a rich text editor and why?

I think 'proper' is important to consider, but personally I think 'predictable' is better for browsers. The input events spec [1] currently says that it should have 'left' gravity ('backward' coming soon) on click, and 'current side' gravity (if you're in an element, stay in it) on arrow keys, etc. This seems predictable to me and can be changed easily by script.

[1] http://w3c.github.io/editing-explainer/input-events.html#default-action-for-beforeinput

Received on Wednesday, 17 December 2014 23:03:27 UTC