Browse files

[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

git-svn-id: http://svn.whatwg.org/webapps@5652 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
1 parent bf0d748 commit 568f7c12e5d7eb24ae1d9292b138420017d62af1 @Hixie Hixie committed Oct 29, 2010
Showing with 234 additions and 0 deletions.
  1. +76 −0 complete.html
  2. +76 −0 index
  3. +82 −0 source
View
76 complete.html
@@ -65969,6 +65969,11 @@ <h4 id=the-drag-data-store><span class=secno>8.7.2 </span>The drag data store</h
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 @@ <h5 id=the-datatransferitems-interface><span class=secno>8.7.3.1 </span>The <cod
<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 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-dr
<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>
View
76 index
@@ -65975,6 +65975,11 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
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 @@ DND-v5: <span>DataTransferItem</span> <span title="dom-DataTransferItems-add">a
<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 @@ interface <dfn>FunctionObjectCallback</dfn> {
<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>
View
82 source
@@ -75145,6 +75145,12 @@ interface <dfn>NavigatorAbilities</dfn> {
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 @@ DND-v5: <span>DataTransferItem</span> <span title="dom-DataTransferItems-add">a
<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 @@ interface <dfn>FunctionObjectCallback</dfn> {
<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>

0 comments on commit 568f7c1

Please sign in to comment.