[Bug 10712] Drag and Drop: Add an attribute to identify drop targets

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712

--- Comment #8 from Tab Atkins Jr. <jackalmage@gmail.com> 2010-10-08 00:59:16 UTC ---
(In reply to comment #7)
> How would the attribute's value distinguish between text types and file types?

Why do you need to do so?


Unrelated: Perhaps it would be nice to auto-cancel dragenter and dragover
events, or rather just auto-prevent the default action for them (which is to
ignore the element and keep dragging), since @dropzone already expresses that
you want files of the given type (the only drag item-specific info you get
during those events).  However, you'd still want some ability to ignore a drag,
as you may base the acceptance on other, global information (for example, if
the element is supposed to be "disabled").  

I'm not sure how you would do this, though - it seems like right now there are
only two possibilities - either the event does its default action, which means
ignoring the dropzone, or the event is cancelled, which means the dropzone is
ready to accept the drop.  There's no way to manually trigger the default
action, so you can't just change what the default action is, or auto-cancel it.
 So, shrug.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Friday, 8 October 2010 00:59:18 UTC