Skip to content

Commit

Permalink
[e] (0) update the straw man dataTransfer.items proposal
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4788 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 22, 2010
1 parent c5221d2 commit f5c6d52
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 16 deletions.
22 changes: 16 additions & 6 deletions complete.html
Expand Up @@ -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 &mdash; 18 February 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 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>-->
Expand Down Expand Up @@ -61783,11 +61783,21 @@ <h3 id=dnd><span class=secno>8.9 </span><dfn>Drag and drop</dfn></h3>
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

-->

Expand Down
20 changes: 15 additions & 5 deletions index
Expand Up @@ -61716,11 +61716,21 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
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

-->

Expand Down
20 changes: 15 additions & 5 deletions source
Expand Up @@ -69862,11 +69862,21 @@ interface <dfn>NavigatorAbilities</dfn> {
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

-->

Expand Down

0 comments on commit f5c6d52

Please sign in to comment.