[whatwg] dataTransfer on drag events
mpd at google.com
Tue Jan 12 15:16:10 PST 2010
Hi folks -
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, at the very
least, the DataTransfer object needs to have a 'types' attribute so that the
drag handler can determine if it can accept the drag.
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 files.) I understand that the DataTransfer
shouldn't have the content of the files for security reasons, but it would
be helpful if it did contain the file names and/or MIME types.
In any case, can the table be updated to at least reflect reality (that
DataTransfer does contain 'types' and is not empty)?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the whatwg