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:09:51 -0700
Message-ID: <BANLkTi=DRskuot8WtexD3S3_=BFNRNrbCA@mail.gmail.com>
On Thu, Jun 16, 2011 at 11:50 AM, Aryeh Gregor <AryehGregor at gmail.com>wrote:

> For instance, could we just say that empty inline
> elements can have the cursor inside them, so foo{}<b></b>bar and
> foo<b></b>{}bar both normalize to foo<b>{}</b>bar?  That would solve
> the specific bug.

What if we had foo<b></b><i></i>bar?

Assuming we don't match WebKit/Opera here, though, does everyone agree
> we should still place constraints on what selections can be generated
> by *user* actions?

Yes, I think all selection modified by user should be normalized by default.
 I'm talking more about programmatically set selection.  I think we'll need
to preserve programmatically set selection ranges instead of always storing
normalized ranges.

- Ryosuke
Received on Thursday, 16 June 2011 12:09:51 UTC

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