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

[whatwg] Selection events in editable content

From: Ojan Vafai <ojan@chromium.org>
Date: Tue, 10 May 2011 09:57:35 -0700
Message-ID: <BANLkTimwkpBc2RDpNpY5VJP3vGa9rv9W8w@mail.gmail.com>
On Tue, May 10, 2011 at 9:51 AM, Ryosuke Niwa <rniwa at webkit.org> wrote:

> On Tue, May 10, 2011 at 9:03 AM, Ojan Vafai <ojan at chromium.org> wrote:
>
>> On Tue, May 10, 2011 at 8:55 AM, Tim Down <timdown at gmail.com> wrote:
>>
>>> newSelectionRanges on its own wouldn't be as useful as possible, since
>>> it tells you nothing about the selection direction. You could cover
>>> this by adding newSelectionFocusNode, newSelectionFocusOffset,
>>> newSelectionAnchorNode and newSelectionAnchorOffset as well.
>>>
>>
>> Could we just put a Selection object on the event? That way, if we add new
>> fields to Selections, we won't need to add new fields to the selectstart
>> event.
>>
>
> Should we support methods such as modify, collapse, setPosition?
>

Yes.
Received on Tuesday, 10 May 2011 09:57:35 UTC

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