[html5] r4788 - [e] (0) update the straw man dataTransfer.items proposal

whatwg at whatwg.org whatwg at whatwg.org
Mon Feb 22 15:54:28 PST 2010


Author: ianh
Date: 2010-02-22 15:54:26 -0800 (Mon, 22 Feb 2010)
New Revision: 4788

Modified:
   complete.html
   index
   source
Log:
[e] (0) update the straw man dataTransfer.items proposal

Modified: complete.html
===================================================================
--- complete.html	2010-02-22 23:03:12 UTC (rev 4787)
+++ complete.html	2010-02-22 23:54:26 UTC (rev 4788)
@@ -157,7 +157,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
    <hgroup><h1>Web Applications 1.0</h1>
-    <h2 class="no-num no-toc">Draft Standard — 18 February 2010</h2>
+    <h2 class="no-num no-toc">Draft Standard — 22 February 2010</h2>
    </hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
    <p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
    <!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
@@ -61783,12 +61783,22 @@
        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>

Modified: index
===================================================================
--- index	2010-02-22 23:03:12 UTC (rev 4787)
+++ index	2010-02-22 23:54:26 UTC (rev 4788)
@@ -61716,12 +61716,22 @@
        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>

Modified: source
===================================================================
--- source	2010-02-22 23:03:12 UTC (rev 4787)
+++ source	2010-02-22 23:54:26 UTC (rev 4788)
@@ -69862,12 +69862,22 @@
        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>




More information about the Commit-Watchers mailing list