[html5] r5747 - [giow] (0) Limit the number of text DND entries to one per type.
whatwg at whatwg.org
whatwg at whatwg.org
Thu Jan 6 19:20:33 PST 2011
Author: ianh
Date: 2011-01-06 19:20:32 -0800 (Thu, 06 Jan 2011)
New Revision: 5747
Modified:
complete.html
index
source
Log:
[giow] (0) Limit the number of text DND entries to one per type.
Modified: complete.html
===================================================================
--- complete.html 2011-01-07 00:40:20 UTC (rev 5746)
+++ complete.html 2011-01-07 03:20:32 UTC (rev 5747)
@@ -67325,6 +67325,11 @@
encouraged to use only <a href=#mime-type title="MIME type">MIME types</a>
or custom strings (without spaces).</p>
+ <p>There is a limit of one <i>Plain Unicode string</i> item per
+ <a href=#the-drag-data-item-type-string title="The drag data item type string">item type
+ string</a>.</p> <!-- DND-v4: consider limiting the structured
+ objects too -->
+
</dd>
<dt>The actual data</dt>
@@ -67596,10 +67601,10 @@
</li>
- <li><p>Remove each item in the <a href=#drag-data-store-item-list>drag data store item
+ <li><p>Remove the item in 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> and whose <a href=#the-drag-data-item-type-string title="the drag data
- item type string">type string</a> is equal to <var title="">format</var>.</li>
+ item type string">type string</a> is equal to <var title="">format</var>, if there is one.</li>
</ol><p class=note>The <code title=dom-DataTransfer-clearData><a href=#dom-datatransfer-cleardata>clearData()</a></code> method does
not affect whether any files were included in the drag, so the <code title=dom-DataTransfer-types><a href=#dom-datatransfer-types>types</a></code> attribute's list might
@@ -67629,10 +67634,10 @@
</li>
- <li><p>Remove each item in the <a href=#drag-data-store-item-list>drag data store item
+ <li><p>Remove the item in 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> and whose <a href=#the-drag-data-item-type-string title="the drag data
- item type string">type string</a> is equal to <var title="">format</var>.</li>
+ item type string">type string</a> is equal to <var title="">format</var>, if there is one.</li>
<li><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
@@ -67667,8 +67672,8 @@
item type string">type string</a> is equal to <var title="">format</var>, return the empty string and abort these
steps.</li>
- <li><p>Let <var title="">result</var> be the data of the first 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
+ <li><p>Let <var title="">result</var> be the data of the item
+ in 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> and whose <a href=#the-drag-data-item-type-string title="the drag data item type
string">type string</a> is equal to <var title="">format</var>.</li>
@@ -67860,10 +67865,11 @@
an indexed property</dfn> <var title="">i</var> of a
<code><a href=#datatransferitems>DataTransferItems</a></code> object, the user agent must return a
<code><a href=#datatransferitem>DataTransferItem</a></code> object representing the <var title="">i</var>th item in the <a href=#drag-data-store>drag data store</a>. The
- same object must be returned each time. The
+ same object must be returned each time a particular item is obtained
+ from this <code><a href=#datatransferitems>DataTransferItems</a></code> object. The
<code><a href=#datatransferitem>DataTransferItem</a></code> object must be associated with the
same <code><a href=#datatransfer>DataTransfer</a></code> object as the
- <code><a href=#datatransferitems>DataTransferItems</a></code> object when it is created.</p>
+ <code><a href=#datatransferitems>DataTransferItems</a></code> object when it is first created.</p>
<p>To <dfn id=dom-datatransferitems-removeitem title=dom-DataTransferItems-removeItem>delete an
existing indexed property</dfn> <var title="">i</var> of a
@@ -67898,14 +67904,21 @@
<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>
+ <p>If there is already an item in 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> and 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>, then throw a
+ <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort these
+ steps.</p>
+ <p>Otherwise, 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:
@@ -67937,7 +67950,7 @@
</dd>
-<!--DND-v4:
+<!--DND-v4: (might want to prevent duplicates like for strings; see above)
<dt>Otherwise
<dd>
Modified: index
===================================================================
--- index 2011-01-07 00:40:20 UTC (rev 5746)
+++ index 2011-01-07 03:20:32 UTC (rev 5747)
@@ -67333,6 +67333,11 @@
encouraged to use only <a href=#mime-type title="MIME type">MIME types</a>
or custom strings (without spaces).</p>
+ <p>There is a limit of one <i>Plain Unicode string</i> item per
+ <a href=#the-drag-data-item-type-string title="The drag data item type string">item type
+ string</a>.</p> <!-- DND-v4: consider limiting the structured
+ objects too -->
+
</dd>
<dt>The actual data</dt>
@@ -67604,10 +67609,10 @@
</li>
- <li><p>Remove each item in the <a href=#drag-data-store-item-list>drag data store item
+ <li><p>Remove the item in 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> and whose <a href=#the-drag-data-item-type-string title="the drag data
- item type string">type string</a> is equal to <var title="">format</var>.</li>
+ item type string">type string</a> is equal to <var title="">format</var>, if there is one.</li>
</ol><p class=note>The <code title=dom-DataTransfer-clearData><a href=#dom-datatransfer-cleardata>clearData()</a></code> method does
not affect whether any files were included in the drag, so the <code title=dom-DataTransfer-types><a href=#dom-datatransfer-types>types</a></code> attribute's list might
@@ -67637,10 +67642,10 @@
</li>
- <li><p>Remove each item in the <a href=#drag-data-store-item-list>drag data store item
+ <li><p>Remove the item in 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> and whose <a href=#the-drag-data-item-type-string title="the drag data
- item type string">type string</a> is equal to <var title="">format</var>.</li>
+ item type string">type string</a> is equal to <var title="">format</var>, if there is one.</li>
<li><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
@@ -67675,8 +67680,8 @@
item type string">type string</a> is equal to <var title="">format</var>, return the empty string and abort these
steps.</li>
- <li><p>Let <var title="">result</var> be the data of the first 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
+ <li><p>Let <var title="">result</var> be the data of the item
+ in 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> and whose <a href=#the-drag-data-item-type-string title="the drag data item type
string">type string</a> is equal to <var title="">format</var>.</li>
@@ -67868,10 +67873,11 @@
an indexed property</dfn> <var title="">i</var> of a
<code><a href=#datatransferitems>DataTransferItems</a></code> object, the user agent must return a
<code><a href=#datatransferitem>DataTransferItem</a></code> object representing the <var title="">i</var>th item in the <a href=#drag-data-store>drag data store</a>. The
- same object must be returned each time. The
+ same object must be returned each time a particular item is obtained
+ from this <code><a href=#datatransferitems>DataTransferItems</a></code> object. The
<code><a href=#datatransferitem>DataTransferItem</a></code> object must be associated with the
same <code><a href=#datatransfer>DataTransfer</a></code> object as the
- <code><a href=#datatransferitems>DataTransferItems</a></code> object when it is created.</p>
+ <code><a href=#datatransferitems>DataTransferItems</a></code> object when it is first created.</p>
<p>To <dfn id=dom-datatransferitems-removeitem title=dom-DataTransferItems-removeItem>delete an
existing indexed property</dfn> <var title="">i</var> of a
@@ -67906,14 +67912,21 @@
<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>
+ <p>If there is already an item in 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> and 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>, then throw a
+ <code><a href=#not_supported_err>NOT_SUPPORTED_ERR</a></code> exception and abort these
+ steps.</p>
+ <p>Otherwise, 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:
@@ -67945,7 +67958,7 @@
</dd>
-<!--DND-v4:
+<!--DND-v4: (might want to prevent duplicates like for strings; see above)
<dt>Otherwise
<dd>
Modified: source
===================================================================
--- source 2011-01-07 00:40:20 UTC (rev 5746)
+++ source 2011-01-07 03:20:32 UTC (rev 5747)
@@ -76712,6 +76712,11 @@
encouraged to use only <span title="MIME type">MIME types</span>
or custom strings (without spaces).</p>
+ <p>There is a limit of one <i>Plain Unicode string</i> item per
+ <span title="The drag data item type string">item type
+ string</span>.</p> <!-- DND-v4: consider limiting the structured
+ objects too -->
+
</dd>
<dt>The actual data</dt>
@@ -77033,11 +77038,11 @@
</li>
- <li><p>Remove each item in the <span>drag data store item
+ <li><p>Remove the item in the <span>drag data store item
list</span> whose <span title="the drag data item kind">kind</span>
is <i>Plain Unicode string</i> and whose <span title="the drag data
item type string">type string</span> is equal to <var
- title="">format</var>.</p></li>
+ title="">format</var>, if there is one.</p></li>
</ol>
@@ -77080,11 +77085,11 @@
</li>
- <li><p>Remove each item in the <span>drag data store item
+ <li><p>Remove the item in the <span>drag data store item
list</span> whose <span title="the drag data item kind">kind</span>
is <i>Plain Unicode string</i> and whose <span title="the drag data
item type string">type string</span> is equal to <var
- title="">format</var>.</p></li>
+ title="">format</var>, if there is one.</p></li>
<li><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
@@ -77131,8 +77136,8 @@
title="">format</var>, return the empty string and abort these
steps.</p></li>
- <li><p>Let <var title="">result</var> be the data of the first item
- to the <span>drag data store item list</span> whose <span
+ <li><p>Let <var title="">result</var> be the data of the item
+ in the <span>drag data store item list</span> whose <span
title="the drag data item kind">kind</span> is <i>Plain Unicode
string</i> and whose <span title="the drag data item type
string">type string</span> is equal to <var
@@ -77360,10 +77365,11 @@
<code>DataTransferItems</code> object, the user agent must return a
<code>DataTransferItem</code> object representing the <var
title="">i</var>th item in the <span>drag data store</span>. The
- same object must be returned each time. The
+ same object must be returned each time a particular item is obtained
+ from this <code>DataTransferItems</code> object. The
<code>DataTransferItem</code> object must be associated with the
same <code>DataTransfer</code> object as the
- <code>DataTransferItems</code> object when it is created.</p>
+ <code>DataTransferItems</code> object when it is first created.</p>
<p>To <dfn title="dom-DataTransferItems-removeItem">delete an
existing indexed property</dfn> <var title="">i</var> of a
@@ -77409,14 +77415,23 @@
<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>
+ <p>If there is already an item in the <span>drag data store item
+ list</span> whose <span title="the drag data item
+ kind">kind</span> is <i>Plain Unicode string</i> and 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>, then throw a
+ <code>NOT_SUPPORTED_ERR</code> exception and abort these
+ steps.</p>
+ <p>Otherwise, 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:
@@ -77449,7 +77464,7 @@
</dd>
-<!--DND-v4:
+<!--DND-v4: (might want to prevent duplicates like for strings; see above)
<dt>Otherwise
<dd>
More information about the Commit-Watchers
mailing list