HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/5652

File a bug

SVNBugCommentTime (UTC)
565210712[Gecko] [Internet Explorer] [Opera] [Webkit] dropzone 4/5, part, um, 3/2: some bits I somehow missed in the previous checkin. Oops.2010-10-29 22:57
Index: source
===================================================================
--- source	(revision 5651)
+++ source	(revision 5652)
@@ -75145,6 +75145,12 @@
       can be used as well. In all cases, however, the values are all
       <span>converted to ASCII lowercase</span> by the API.</p>
 
+      <p class="note">Strings that contain <span title="space
+      character">space characters</span> cannot be used with the <code
+      title="attr-dropzone">dropzone</code> attribute, so authors are
+      encouraged to use only <span title="MIME type">MIME types</span>
+      or custom strings (without spaces).</p>
+
      </dd>
 
      <dt>The actual data</dt>
@@ -75828,6 +75834,80 @@
 
    <li>
 
+    <p>Jump to the appropriate set of steps from the following list:</p>
+
+    <dl class="switch">
+
+     <dt>If the first argument to the method is a string</dt>
+
+     <dd>
+
+      <p>Add an item to the <span>drag data store item list</span>
+      whose <span title="the drag data item kind">kind</span> is
+      <i>Plain Unicode string</i>, whose <span title="the drag data
+      item type string">type string</span> is equal to the value of
+      the method's second argument, <span>converted to ASCII
+      lowercase</span>, and whose data is the string given by the
+      method's first argument.</p>
+
+     </dd>
+
+<!--DND-v3:
+     <dt>If the first argument to the method is a <code>Blob</code></dt>
+
+     <dd>
+
+      <p>Add an item to the <span>drag data store item list</span>
+      whose <span title="the drag data item kind">kind</span> is
+      <i>Blob</i>, whose <span title="the drag data item type
+      string">type string</span> is the <code
+      title="dom-Blob-type">type</code> of the <code>Blob</code>,
+      <span>converted to ASCII lowercase</span>, and whose data is the
+      same as the <code>Blob</code>'s data.</p>
+
+     </dd>
+-->
+
+     <dt>If the first argument to the method is a <code>File</code></dt>
+
+     <dd>
+
+      <p>Add an item to the <span>drag data store item list</span>
+      whose <span title="the drag data item kind">kind</span> is
+      <i>File</i>, whose <span title="the drag data item type
+      string">type string</span> is the <code
+      title="dom-Blob-type">type</code> of the <code>File</code>,
+      <span>converted to ASCII lowercase</span>, and whose data is the
+      same as the <code>File</code>'s data.</p>
+
+     </dd>
+
+<!--DND-v4:
+     <dt>Otherwise
+
+     <dd>
+
+      <p>Add an item to the <span>drag data store item list</span>
+      whose <span title="the drag data item kind">kind</span> is
+      <i>Object</i>, whose <span title="the drag data item type
+      string">type string</span> is equal to the value of the method's
+      second argument, <span>converted to ASCII lowercase</span>, and
+      whose data is a <span>structured clone</span> of the method's
+      first argument. If creating the clone throws an exception, then
+      throw that exception and abort these steps.</p>
+
+     </dd>
+-->
+
+    </dl>
+
+   </li>
+
+   <li><p><span title="dom-DataTransferItems-item">Determine the value
+   of the indexed property</span> corresponding to the newly added
+   item, and return that value (a newly created
+   <code>DataTransferItem</code> object).</p></li>
+
   </ol>
 
   </div>
@@ -76696,12 +76776,14 @@
          <dd><p>Set the <span>current target element</span> to the
          <span>immediate user selection</span> anyway.</p></dd>
 
+
          <dt>If the <span>current target element</span> is
          <span>the body element</span></dt>
 
          <dd><p>Leave the <span>current target element</span>
          unchanged.</p></dd>
 
+
          <dt>Otherwise</dt>
 
          <dd>

|