- From: poot <cvsmail@w3.org>
- Date: Tue, 23 Feb 2010 08:54:50 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: update the straw man dataTransfer.items proposal (whatwg r4788) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3835&r2=1.3836&f=h http://html5.org/tools/web-apps-tracker?from=4787&to=4788 =================================================================== 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:55:19 UTC