[whatwg] dataTransfer on drag events

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)?

Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100112/290f2407/attachment.htm>

Received on Tuesday, 12 January 2010 15:16:10 UTC