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

[whatwg] Normalization of user selections

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Fri, 17 Jun 2011 02:02:55 -0700
Message-ID: <BANLkTi=MqCaMUPrAe3c_=qqkhknP2ZgCvQ@mail.gmail.com>
On Thu, Jun 16, 2011 at 12:33 PM, Ojan Vafai <ojan at chromium.org> wrote:

> On Thu, Jun 16, 2011 at 12:09 PM, Ryosuke Niwa <rniwa at webkit.org> wrote:
>>
>> 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.
>>
>
> I disagree. That defeats all the benefits of normalizing. Now all the code
> that handles editing can't assume normalization.
>

We can provide a method to normalize selection to address that issue.

- Ryosuke
Received on Friday, 17 June 2011 02:02:55 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:06 UTC