Re: clipboard events

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 UTC