Re: [whatwg] Proposal for public data in drag events

2012-12-10 Thread Ian Hickson
On Thu, 30 Aug 2012, Trevor Burnham wrote: The main use case I have in mind is an interface where elements respond to the object being dragged. A common case is showing visual feedback depending on whether the element emitting a dragenter/dragover is a valid drop target for the object

Re: [whatwg] Proposal for public data in drag events

2012-08-30 Thread Ian Hickson
On Thu, 21 Jun 2012, Trevor Burnham wrote: I've been using HTML drag-and-drop (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html) in a project, but I've run into one limitation that seems severe to me: There is no direct way to determine what the source node is from a

Re: [whatwg] Proposal for public data in drag events

2012-08-30 Thread Bronislav Klučka
On 30.8.2012 19:27, Ian Hickson wrote: On Thu, 21 Jun 2012, Trevor Burnham wrote: Therefore, I'd like to propose the addition of a publicData object on all drag events. It would have the same interface and behavior as the dataTransfer object, with the sole exception that it would be read-only

Re: [whatwg] Proposal for public data in drag events

2012-08-30 Thread Trevor Burnham
On Aug 30, 2012, at 1:27 PM, Ian Hickson i...@hixie.ch wrote: On Thu, 21 Jun 2012, Trevor Burnham wrote: I've been using HTML drag-and-drop (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html) in a project, but I've run into one limitation that seems severe to me:

[whatwg] Proposal for public data in drag events

2012-06-21 Thread Trevor Burnham
I've been using HTML drag-and-drop (http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html) in a project, but I've run into one limitation that seems severe to me: There is no direct way to determine what the source node is from a dragenter, dragover, or dragleave event. This