W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: clipboard events

From: Aryeh Gregor <Simetrical+w3c@gmail.com>
Date: Wed, 18 May 2011 20:00:45 -0400
Message-ID: <BANLkTimpVwwUgSKoFv=Q0b1xX+4FDZYotQ@mail.gmail.com>
To: Ian Hickson <ian@hixie.ch>
Cc: "Hallvord R. M. Steen" <hallvord@opera.com>, public-webapps@w3.org
On Mon, May 9, 2011 at 4:34 PM, Ian Hickson <ian@hixie.ch> wrote:
>> On Sat, 08 Jan 2011 05:02:02 +0900, Ian Hickson <ian@hixie.ch> wrote:
>>
>> > > > Is it intended to also cover cut, copy and paste?
>> > >
>> > > Sorry, I don't understand the question.
>> >
>> > Well, for example, the 'cut' operation involves removing or mutating DOM
>> > nodes (for contentEditable) or editing the control value (for <input>) or
>> > raw value (for <textarea>), and modifying the selection accordingly.
>>
>> The timing is in scope, how to do the actual modifications is not (i.e.
>> I'm not trying to decide how the implementation should figure out what
>> DOM nodes to remove when the user selects something and cuts.)
>
> We probably should define that.

Why isn't it just Selection.deleteFromDocument()?
http://html5.org/specs/dom-range.html#dom-selection-deletefromdocument
Received on Thursday, 19 May 2011 00:01:32 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:45 GMT