W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2011

[whatwg] Normalization of user selections

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Thu, 16 Jun 2011 12:22:01 -0700
Message-ID: <BANLkTikghSgK7frNf3275rxWYhQ3rN2ZNA@mail.gmail.com>
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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC