- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 22 Feb 2010 23:54:35 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv3755 Modified Files: Overview.html Log Message: update the straw man dataTransfer.items proposal (whatwg r4788) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.3835 retrieving revision 1.3836 diff -u -d -r1.3835 -r1.3836 --- Overview.html 22 Feb 2010 23:03:17 -0000 1.3835 +++ Overview.html 22 Feb 2010 23:54:31 -0000 1.3836 @@ -48388,11 +48388,21 @@ Eduard Pascual) is to have a new attribute on dataTransfer that's a list of items, each of which has: - .kind = text data, File data, promise - .type = a MIME type - .getData(callback) = calls the callback once the data is available - .setData(value) = replace the value - .remove() = removes the entry + dataTransfer.items = DataTransferItems + + DataTransferItems.length + .getItem(n) = DataTransferItem + .add(stringData, type) + .add(blobData) + .add(fileData) + .add(dataTransferItem) + .clear() + + DataTransferItem.kind = 'string', 'file', 'blob', ... + .type = MIME type + .binary = boolean + .getTextData(function callback (data)) - throws if binary is true + .getBlob() - returns File or Blob --><p>This section defines an event-based drag-and-drop mechanism.<p>This specification does not define exactly what a <em>drag-and-drop operation</em> actually is.<p>On a visual medium with a pointing device, a drag operation could
Received on Monday, 22 February 2010 23:54:36 UTC