[html5] r5652 - [giow] (0) dropzone 4/5, part, um, 3/2: some bits I somehow missed in the previo [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Oct 29 15:57:09 PDT 2010


Author: ianh
Date: 2010-10-29 15:57:07 -0700 (Fri, 29 Oct 2010)
New Revision: 5652

Modified:
   complete.html
   index
   source
Log:
[giow] (0) dropzone 4/5, part, um, 3/2: some bits I somehow missed in the previous checkin. Oops.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712

Modified: complete.html
===================================================================
--- complete.html	2010-10-29 22:03:12 UTC (rev 5651)
+++ complete.html	2010-10-29 22:57:07 UTC (rev 5652)
@@ -65969,6 +65969,11 @@
       can be used as well. In all cases, however, the values are all
       <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a> by the API.</p>
 
+      <p class=note>Strings that contain <a href=#space-character title="space
+      character">space characters</a> cannot be used with the <code title=attr-dropzone>dropzone</code> attribute, so authors are
+      encouraged to use only <a href=#mime-type title="MIME type">MIME types</a>
+      or custom strings (without spaces).</p>
+
      </dd>
 
      <dt>The actual data</dt>
@@ -66531,6 +66536,75 @@
 
    <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 <a href=#drag-data-store-item-list>drag data store item list</a>
+      whose <a href=#the-drag-data-item-kind title="the drag data item kind">kind</a> is
+      <i>Plain Unicode string</i>, whose <a href=#the-drag-data-item-type-string title="the drag data
+      item type string">type string</a> is equal to the value of
+      the method's second argument, <a href=#converted-to-ascii-lowercase>converted to ASCII
+      lowercase</a>, 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 <a href=#drag-data-store-item-list>drag data store item list</a>
+      whose <a href=#the-drag-data-item-kind title="the drag data item kind">kind</a> is
+      <i>File</i>, whose <a href=#the-drag-data-item-type-string title="the drag data item type
+      string">type string</a> is the <code title=dom-Blob-type>type</code> of the <code>File</code>,
+      <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>, 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><a href=#dom-datatransferitems-item title=dom-DataTransferItems-item>Determine the value
+   of the indexed property</a> corresponding to the newly added
+   item, and return that value (a newly created
+   <code><a href=#datatransferitem>DataTransferItem</a></code> object).</li>
+
   </ol></div>
 
 
@@ -67250,12 +67324,14 @@
          <dd><p>Set the <a href=#current-target-element>current target element</a> to the
          <a href=#immediate-user-selection>immediate user selection</a> anyway.</dd>
 
+
          <dt>If the <a href=#current-target-element>current target element</a> is
          <a href=#the-body-element>the body element</a></dt>
 
          <dd><p>Leave the <a href=#current-target-element>current target element</a>
          unchanged.</dd>
 
+
          <dt>Otherwise</dt>
 
          <dd>

Modified: index
===================================================================
--- index	2010-10-29 22:03:12 UTC (rev 5651)
+++ index	2010-10-29 22:57:07 UTC (rev 5652)
@@ -65975,6 +65975,11 @@
       can be used as well. In all cases, however, the values are all
       <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a> by the API.</p>
 
+      <p class=note>Strings that contain <a href=#space-character title="space
+      character">space characters</a> cannot be used with the <code title=attr-dropzone>dropzone</code> attribute, so authors are
+      encouraged to use only <a href=#mime-type title="MIME type">MIME types</a>
+      or custom strings (without spaces).</p>
+
      </dd>
 
      <dt>The actual data</dt>
@@ -66537,6 +66542,75 @@
 
    <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 <a href=#drag-data-store-item-list>drag data store item list</a>
+      whose <a href=#the-drag-data-item-kind title="the drag data item kind">kind</a> is
+      <i>Plain Unicode string</i>, whose <a href=#the-drag-data-item-type-string title="the drag data
+      item type string">type string</a> is equal to the value of
+      the method's second argument, <a href=#converted-to-ascii-lowercase>converted to ASCII
+      lowercase</a>, 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 <a href=#drag-data-store-item-list>drag data store item list</a>
+      whose <a href=#the-drag-data-item-kind title="the drag data item kind">kind</a> is
+      <i>File</i>, whose <a href=#the-drag-data-item-type-string title="the drag data item type
+      string">type string</a> is the <code title=dom-Blob-type>type</code> of the <code>File</code>,
+      <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>, 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><a href=#dom-datatransferitems-item title=dom-DataTransferItems-item>Determine the value
+   of the indexed property</a> corresponding to the newly added
+   item, and return that value (a newly created
+   <code><a href=#datatransferitem>DataTransferItem</a></code> object).</li>
+
   </ol></div>
 
 
@@ -67256,12 +67330,14 @@
          <dd><p>Set the <a href=#current-target-element>current target element</a> to the
          <a href=#immediate-user-selection>immediate user selection</a> anyway.</dd>
 
+
          <dt>If the <a href=#current-target-element>current target element</a> is
          <a href=#the-body-element>the body element</a></dt>
 
          <dd><p>Leave the <a href=#current-target-element>current target element</a>
          unchanged.</dd>
 
+
          <dt>Otherwise</dt>
 
          <dd>

Modified: source
===================================================================
--- source	2010-10-29 22:03:12 UTC (rev 5651)
+++ source	2010-10-29 22:57:07 UTC (rev 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>




More information about the Commit-Watchers mailing list