[whatwg] Drag and drop feedback

2012-06-28 Thread Ian Hickson
On Fri, 17 Feb 2012, Anne van Kesteren wrote: * Firefox, Chrome and Opera only allow dragend to delete ranges during a 'move' if the range exists within an editable element. The spec needs to change to reflect this - currently it expects this anywhere within a non-editable document.

Re: [whatwg] Drag-and-drop feedback

2011-05-09 Thread Ian Hickson
On Mon, 31 Jan 2011, David Flanagan wrote: nit: One of your old examples near the beginning of the DnD section involves class=dragzone, which seems confusing now that you've added an attribute with the same zone. Maybe change that class to droppable? The word dragzone doesn't appear in

Re: [whatwg] Drag-and-drop feedback

2011-01-31 Thread David Flanagan
Ian, I love the new dropzone attribute. Nice work. Here is one nit, and a couple of questions nit: One of your old examples near the beginning of the DnD section involves class=dragzone, which seems confusing now that you've added an attribute with the same zone. Maybe change that class

Re: [whatwg] Drag-and-drop feedback

2011-01-06 Thread Ian Hickson
On Tue, 2 Nov 2010, Charles Pritchard wrote: On 11/1/2010 6:03 PM, Ian Hickson wrote: On Thu, 26 Aug 2010, Charles Pritchard wrote: On 8/25/2010 2:02 PM, Ian Hickson wrote: On Mon, 2 Aug 2010, Charles Pritchard wrote: [ UAs can use input type=file to let the user enter remote

Re: [whatwg] Drag-and-drop feedback

2010-12-01 Thread Daniel Cheng
Couple of things I noticed after the changes to the DnD spec: - event.dataTransfer.types no longer mentions Text or URL. Is this intentional? - Does the casing of Text and URL in the return value of event.dataTransfer.types matter? Daniel On Wed, Nov 17, 2010 at 13:05, Charles Pritchard

Re: [whatwg] Drag-and-drop feedback

2010-12-01 Thread Charles Pritchard
On 12/1/2010 2:52 PM, Daniel Cheng wrote: Couple of things I noticed after the changes to the DnD spec: - event.dataTransfer.types no longer mentions Text or URL. Is this intentional? They're covered in implementation:

Re: [whatwg] Drag-and-drop feedback

2010-11-17 Thread Charles Pritchard
On 11/16/2010 4:05 PM, Daniel Cheng wrote: On Tue, Nov 16, 2010 at 14:48, Charles Pritchard ch...@jumis.com mailto:ch...@jumis.com wrote: When interacting with non-DOM apps or pages, some platforms can't easily convert arbitrary MIME types to native data

Re: [whatwg] Drag-and-drop feedback

2010-11-16 Thread Charles Pritchard
On 11/1/2010 6:03 PM, Ian Hickson wrote: On Mon, 22 Feb 2010, Ian Hickson wrote: On Thu, 4 Feb 2010, Ian Hickson wrote: On Sat, 23 Jan 2010, Eduard Pascual wrote: Would it be possible to provide a list of drag items (to call them somehow) instead of, or in addition to, the current info

Re: [whatwg] Drag-and-drop feedback

2010-11-16 Thread Daniel Cheng
On Tue, Nov 16, 2010 at 14:48, Charles Pritchard ch...@jumis.com wrote: When interacting with non-DOM apps or pages, some platforms can't easily convert arbitrary MIME types to native data transfer types for copy/paste or DnD. For this reason, I think the spec should explicitly list MIME

Re: [whatwg] Drag-and-drop feedback

2010-11-02 Thread Charles Pritchard
On 11/1/2010 6:03 PM, Ian Hickson wrote: On Thu, 26 Aug 2010, Charles Pritchard wrote: On 8/25/2010 2:02 PM, Ian Hickson wrote: On Mon, 2 Aug 2010, Charles Pritchard wrote: [ UAs can useinput type=file to let the user enter remote URLs ] When a user through selection, click+drag or manual

Re: [whatwg] Drag-and-drop feedback

2010-11-02 Thread Daniel Cheng
On Tue, 9 Mar 2010, Daniel Cheng wrote: I think files have always been a special case and should continue to be handled that way. I don't think there's any platform pasteboard that supports multiple items of one non-file type, so it'd make the most sense to make it a 1:1 mapping from

[whatwg] Drag-and-drop feedback

2010-11-01 Thread Ian Hickson
On Mon, 22 Feb 2010, Ian Hickson wrote: On Thu, 4 Feb 2010, Ian Hickson wrote: On Sat, 23 Jan 2010, Eduard Pascual wrote: Would it be possible to provide a list of drag items (to call them somehow) instead of, or in addition to, the current info provided by the DataTransfer

Re: [whatwg] Drag-and-drop feedback

2010-04-08 Thread Ian Hickson
On Fri, 5 Feb 2010, Roland Steiner wrote: Since I am currently in the process of fixing bugs in this area for Chrome, there are 2 things I'm wondering about: .) whether Text and URL should be part of the return value of types (probably not, according to Ian's comment). However, since

Re: [whatwg] Drag-and-drop feedback

2010-03-29 Thread Daniel Cheng
I like the DataTransferItems proposal. I had a few questions, but no one answered, so I'm going to propose some modifications: DataTransferItems is a mapping of types to data like DataTransfer. DataTransfer mirrors DataTransferItems, but DataTransfer.getData() will throw an error if the data is a

Re: [whatwg] Drag-and-drop feedback

2010-03-09 Thread Daniel Cheng
On Fri, Feb 26, 2010 at 10:56 AM, Dmitry Titov dim...@google.com wrote: On Mon, Feb 22, 2010 at 6:06 PM, Daniel Cheng dch...@google.com wrote: Several questions about the proposal: How does DataTransferItems interact with the original DataTransfer object? I'm assuming changes in one should

Re: [whatwg] Drag-and-drop feedback

2010-02-26 Thread Dmitry Titov
On Mon, Feb 22, 2010 at 6:06 PM, Daniel Cheng dch...@google.com wrote: Several questions about the proposal: How does DataTransferItems interact with the original DataTransfer object? I'm assuming changes in one should be reflected in the other. If that's the case, what should happen if I do

Re: [whatwg] Drag-and-drop feedback

2010-02-22 Thread Ian Hickson
On Thu, 4 Feb 2010, Ian Hickson wrote: On Sat, 23 Jan 2010, Eduard Pascual wrote: Would it be possible to provide a list of drag items (to call them somehow) instead of, or in addition to, the current info provided by the DataTransfer object? That's a pretty good idea. I think we

Re: [whatwg] Drag-and-drop feedback

2010-02-22 Thread Daniel Cheng
Several questions about the proposal: How does DataTransferItems interact with the original DataTransfer object? I'm assuming changes in one should be reflected in the other. If that's the case, what should happen if I do this: dataTransfer.items.add(fileData);

Re: [whatwg] Drag-and-drop feedback

2010-02-05 Thread Roland Steiner
Quick correction/addendum: FireFox seems to be actually fine with CRLF as line separator in setData(text/uri-list, data) and will return only the first URL within data on getData(URL). However, it doesn't seem to return files as URLs with getData(text/uri-list), which I guess would be my third

Re: [whatwg] Drag-and-drop feedback

2010-02-04 Thread Daniel Cheng
Webkit and Firefox are case-sensitive. IE only does TEXT and URL, but case-insensitively (at least for Text, I didn't test URL). Chrome is case-insensitive for everything. Tough call. I guess we'll go with just converting everything to lowercase, so that it's case-insensitive. BTW I

Re: [whatwg] Drag-and-drop feedback

2010-02-04 Thread Daniel Cheng
On Thu, Feb 4, 2010 at 5:28 PM, Ian Hickson i...@hixie.ch wrote: On Thu, 4 Feb 2010, Daniel Cheng wrote: Webkit and Firefox are case-sensitive. IE only does TEXT and URL, but case-insensitively (at least for Text, I didn't test URL). Chrome is case-insensitive for everything.

Re: [whatwg] Drag-and-drop feedback

2010-02-04 Thread Ian Hickson
On Thu, 4 Feb 2010, Daniel Cheng wrote: On Thu, Feb 4, 2010 at 5:28 PM, Ian Hickson i...@hixie.ch wrote: On Thu, 4 Feb 2010, Daniel Cheng wrote: Webkit and Firefox are case-sensitive. IE only does TEXT and URL, but case-insensitively (at least for Text, I didn't test URL).

Re: [whatwg] Drag-and-drop feedback

2010-02-04 Thread Roland Steiner
Since I am currently in the process of fixing bugs in this area for Chrome, there are 2 things I'm wondering about: .) whether Text and URL should be part of the return value of types (probably not, according to Ian's comment). However, since text/uri-list may in fact not contain a valid URL, the

Re: [whatwg] Drag-and-drop feedback

2010-02-03 Thread Ian Hickson
On Sat, 23 Jan 2010, Eduard Pascual wrote: Would it be possible to provide a list of drag items (to call them somehow) instead of, or in addition to, the current info provided by the DataTransfer object? That's a pretty good idea. I think we should probably do this when we add more types

Re: [whatwg] Drag-and-drop feedback

2010-01-25 Thread Jian Li
On Sat, Jan 23, 2010 at 2:30 AM, Ian Hickson i...@hixie.ch wrote: On Mon, 17 Aug 2009, Jian Li wrote: In order to download the attachment from an Internet mail application, the user will have to click the attachment link and a save dialog will pop up to let the user select the

Re: [whatwg] Drag-and-drop feedback

2010-01-25 Thread Michael Davidson
On Sat, Jan 23, 2010 at 2:30 AM, Ian Hickson i...@hixie.ch wrote: On Tue, 12 Jan 2010, Michael Davidson wrote: The table in section 7.9.3 says that the DataTransfer object should be empty for dragenter and dragover events. Clearly this is not the case - the example in 7.9.1 shows that,

[whatwg] Drag-and-drop feedback

2010-01-23 Thread Ian Hickson
On Mon, 17 Aug 2009, Jian Li wrote: In order to download the attachment from an Internet mail application, the user will have to click the attachment link and a save dialog will pop up to let the user select the destination folder. This will normally involves multiple clicks. Native

Re: [whatwg] Drag-and-drop feedback

2010-01-23 Thread Eduard Pascual
On Sat, Jan 23, 2010 at 11:30 AM, Ian Hickson i...@hixie.ch wrote: On Mon, 17 Aug 2009, Jian Li wrote: [...] The issue that I'm having is that if the DataTransfer object says that it has Files, I have no way to determine what type those files are. (In this case, I only want to accept image

Re: [whatwg] Drag-and-drop feedback

2009-10-12 Thread Ian Hickson
On Sun, 11 Oct 2009, Garrett Smith wrote: My question is: Which browser does document.initDragEvent work in? Do you mean DragEvent.initDragEvent? Document.initDragEvent is inordinately long and cumbersome, taking 16 arguments, and requiring the creation of a DataTransfer object. That

Re: [whatwg] Drag-and-drop feedback

2009-10-12 Thread Garrett Smith
On Mon, Oct 12, 2009 at 4:37 AM, Ian Hickson i...@hixie.ch wrote: On Sun, 11 Oct 2009, Garrett Smith wrote: My question is: Which browser does document.initDragEvent work in? Do you mean DragEvent.initDragEvent? AH, yeah. The event is under MouseEvent, then? So:-

Re: [whatwg] Drag-and-drop feedback

2009-10-12 Thread Ian Hickson
On Mon, 12 Oct 2009, Garrett Smith wrote: On Mon, Oct 12, 2009 at 4:37 AM, Ian Hickson i...@hixie.ch wrote: On Sun, 11 Oct 2009, Garrett Smith wrote: My question is: Which browser does document.initDragEvent work in? Do you mean DragEvent.initDragEvent? AH, yeah. The event is under

Re: [whatwg] Drag-and-drop feedback

2009-10-11 Thread Garrett Smith
On Tue, Nov 25, 2008 at 6:52 PM, Ian Hickson i...@hixie.ch wrote: (Note: feedback relating to drag-and-drop of files from the filesystem, with possible uploading of content, isn't included in this e-mail. I am waiting to see what happens with the Web Apps File Upload spec.) On Mon, 30 Apr

[whatwg] Drag-and-drop feedback

2008-11-25 Thread Ian Hickson
(Note: feedback relating to drag-and-drop of files from the filesystem, with possible uploading of content, isn't included in this e-mail. I am waiting to see what happens with the Web Apps File Upload spec.) On Mon, 30 Apr 2007, Jon Barnett wrote: On 4/30/07, Ian McKellar [EMAIL PROTECTED]