[whatwg] Normalization of user selections

On Thu, Jun 16, 2011 at 12:12 PM, Boris Zbarsky <bzbarsky at mit.edu> wrote:
>
> This is an interesting situation which is the inverse of the bidi problem.
>  In the bidi case there is a single point in the DOM which corresponds to
> two different user-perceived selection positions.  In this case, a single
> user-perceived selection position corresponds to multiple (could be more
> than 2) points in the DOM....
>
> As an actual user of editors, by the way, the #1 thing that pisses me off
> about wysiwyg editors is precisely having situations like the one above and
> wanting to be able to make the text be "<b>foo</b>orbar" in some cases but
> "<b>foopy</b>bar" in others.  Wysisyg editors tend to be terrible at this
> sort of thing.  Is that something that's inevitable, or can we do better
> here?
>

It's inevitable in some sense because we can't guess the user intent
although Firefox and Microsoft Word seem to use the direction to which user
moved caret as a hint.

- Ryosuke

Received on Thursday, 16 June 2011 12:22:01 UTC