Skip to content

Commit

Permalink
Editorial: rename "Plain Unicode string" to "text" for drag data store
Browse files Browse the repository at this point in the history
  • Loading branch information
karx authored and domenic committed Aug 9, 2019
1 parent 1224105 commit 817ee1b
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -75805,7 +75805,7 @@ body { display:none }

<dl>

<dt><i>Plain Unicode string</i></dt>
<dt><i>Text</i></dt>
<dd>
<p>Text.</p>
</dd>
Expand Down Expand Up @@ -75843,7 +75843,7 @@ body { display:none }
type">MIME types</span>; other values can be used as well. In all cases, however, the values
are all <span>converted to ASCII lowercase</span> by the API.</p>

<p>There is a limit of one <i>Plain Unicode string</i> item per <span data-x="The drag data
<p>There is a limit of one <i>text</i> item per <span data-x="The drag data
item type string">item type string</span>.</p> <!-- DND-v4: consider limiting the structured
objects too -->

Expand Down Expand Up @@ -76096,7 +76096,7 @@ interface <dfn>DataTransfer</dfn> {
<ol>
<li><p>For each item in the <code>DataTransfer</code> object's <span>drag data store item
list</span> <!-- in some order...? --> whose <span data-x="the drag data item kind">kind</span>
is <i>Plain Unicode string</i>, add an entry to <var>L</var> consisting of the item's <span
is <i>text</i>, add an entry to <var>L</var> consisting of the item's <span
data-x="the drag data item type string">type string</span>.</p></li>

<li><p>If there are any items in the <code>DataTransfer</code> object's <span>drag data store
Expand Down Expand Up @@ -76209,7 +76209,7 @@ interface <dfn>DataTransfer</dfn> {
data-x="">text/uri-list</code>" and set <var>convert-to-URL</var> to true.</p></li>

<li><p>If there is no item in the <span>drag data store item list</span> whose <span data-x="the
drag data item kind">kind</span> is <i>Plain Unicode string</i> and whose <span data-x="the drag
drag data item kind">kind</span> is <i>text</i> and whose <span data-x="the drag
data item type string">type string</span> is equal to <var>format</var>, return the empty string.</p></li>

<li><p>Let <var>result</var> be the data of the item in the <span>drag data store item
Expand Down Expand Up @@ -76251,12 +76251,12 @@ interface <dfn>DataTransfer</dfn> {
</li>

<li><p>Remove the item in the <span>drag data store item list</span> whose <span data-x="the drag
data item kind">kind</span> is <i>Plain Unicode string</i> and whose <span data-x="the drag data
data item kind">kind</span> is <i>text</i> and whose <span data-x="the drag data
item type string">type string</span> is equal to <var>format</var>, if there is
one.</p></li>

<li><p>Add an item to the <span>drag data store item list</span> whose <span data-x="the drag data
item kind">kind</span> is <i>Plain Unicode string</i>, whose <span data-x="the drag data item type
item kind">kind</span> is <i>text</i>, whose <span data-x="the drag data item type
string">type string</span> is equal to <var>format</var>, and whose data is the string
given by the method's second argument.</p></li>

Expand Down Expand Up @@ -76292,7 +76292,7 @@ interface <dfn>DataTransfer</dfn> {
</li>

<li><p>Remove the item in the <span>drag data store item list</span> whose <span data-x="the drag
data item kind">kind</span> is <i>Plain Unicode string</i> and whose <span data-x="the drag data
data item kind">kind</span> is <i>text</i> and whose <span data-x="the drag data
item type string">type string</span> is equal to <var>format</var>, if there is
one.</p></li>

Expand Down Expand Up @@ -76455,13 +76455,13 @@ DND-v5: <span>DataTransferItem</span>? <span data-x="dom-DataTransferItemList-a
<dd>

<p>If there is already an item in the <span>drag data store item list</span> whose <span
data-x="the drag data item kind">kind</span> is <i>Plain Unicode string</i> and whose <span
data-x="the drag data item kind">kind</span> is <i>text</i> and whose <span
data-x="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
<span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p>

<p>Otherwise, add an item to the <span>drag data store item list</span> whose <span data-x="the
drag data item kind">kind</span> is <i>Plain Unicode string</i>, whose <span data-x="the drag
drag data item kind">kind</span> is <i>text</i>, whose <span data-x="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>
Expand Down Expand Up @@ -76582,7 +76582,7 @@ callback <dfn>FunctionObjectCallback</dfn> = void (any data);--></code></pre>
<dd>

<p>Invokes the callback with the string data as the argument, if <span>the drag data item
kind</span> is <i>Plain Unicode string</i>.</p>
kind</span> is <i>text</i>.</p>

</dd>

Expand All @@ -76607,7 +76607,7 @@ callback <dfn>FunctionObjectCallback</dfn> = void (any data);--></code></pre>
<dd>

<p>Invokes the callback with the cloned object data as the argument, if <span>the drag data item
kind</span> is <i>Plain Unicode string</i> or <i>Object</i>.</p>
kind</span> is <i>text</i> or <i>Object</i>.</p>

</dd>
-->
Expand Down Expand Up @@ -76639,7 +76639,7 @@ callback <dfn>FunctionObjectCallback</dfn> = void (any data);--></code></pre>
<thead>
<tr> <th> Kind <th> String
<tbody>
<tr> <td> <i>Plain Unicode string</i> <td> "<code data-x="">string</code>"
<tr> <td> <i>Text</i> <td> "<code data-x="">string</code>"
<!-- DND-v3: <tr> <td> <i>Blob</i> <td> "<code data-x="">blob</code>"-->
<tr> <td> <i>File</i> <td> "<code data-x="">file</code>"
<!-- DND-v4: <tr> <td> <i>Object</i> <td> "<code data-x="">object</code>"-->
Expand All @@ -76660,7 +76660,7 @@ callback <dfn>FunctionObjectCallback</dfn> = void (any data);--></code></pre>
data-x="concept-dnd-rw">read/write mode</i> or the <i data-x="concept-dnd-ro">read-only mode</i>,
return. The callback is never invoked.</p></li>

<li><p>If <span>the drag data item kind</span> is not <i>Plain Unicode string</i>, then return.
<li><p>If <span>the drag data item kind</span> is not <i>text</i>, then return.
The callback is never invoked.</p></li>

<li><p>Otherwise, <span>queue a task</span> to invoke <var>callback</var>, passing the
Expand Down Expand Up @@ -77044,7 +77044,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
<dd>"<code>text/plain</code>"</dd>

<dt><span>The drag data item kind</span>
<dd><i>Plain Unicode string</i></dd>
<dd><i>Text</i></dd>

<dt>The actual data</dt>
<dd>The text of the selection</dd>
Expand Down Expand Up @@ -77097,7 +77097,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
<dd><code>application/microdata+json</code></dd>

<dt><span>The drag data item kind</span>
<dd><i>Plain Unicode string</i></dd>
<dd><i>Text</i></dd>

<dt>The actual data</dt>
<dd>The resulting JSON string.</dd>
Expand Down Expand Up @@ -77156,7 +77156,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
<dd><code>text/uri-list</code></dd>

<dt><span>The drag data item kind</span>
<dd><i>Plain Unicode string</i></dd>
<dd><i>Text</i></dd>

<dt>The actual data</dt>
<dd><var>url string</var></dd>
Expand Down Expand Up @@ -77315,7 +77315,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
data-x="attr-input-type-text">Text</span> state) or an <span>editing host</span> or
<span>editable</span> element, and the <span>drag data store item list</span> has an item
with <span>the drag data item type string</span> "<code>text/plain</code>" and <span>the
drag data item kind</span> <i>Plain Unicode string</i></dt>
drag data item kind</span> <i>text</i></dt>

<dd><p>Set the <span>current target element</span> to the <span>immediate user
selection</span> anyway.</p></dd>
Expand Down Expand Up @@ -77370,7 +77370,7 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
data-x="attr-input-type-text">Text</span> state) or an <span>editing host</span> or
<span>editable</span> element, and the <span>drag data store item list</span> has an item
with <span>the drag data item type string</span> "<code>text/plain</code>" and <span>the drag
data item kind</span> <i>Plain Unicode string</i></dt>
data item kind</span> <i>text</i></dt>

<dd><p>Set the <span>current drag operation</span> to either "<code
data-x="concept-current-drag-operation-copy">copy</code>" or "<code
Expand Down Expand Up @@ -77527,12 +77527,12 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
data-x="attr-input-type-text">Text</span> state) or an <span>editing host</span> or
<span>editable</span> element, and the <span>drag data store item list</span> has an item
with <span>the drag data item type string</span> "<code>text/plain</code>" and <span>the
drag data item kind</span> <i>Plain Unicode string</i></dt>
drag data item kind</span> <i>text</i></dt>

<dd><p>Insert the actual data of the first item in the <span>drag data store item
list</span> to have <span data-x="the drag data item type string">a drag data item type
string</span> of "<code>text/plain</code>" and <span data-x="the drag data item kind">a drag
data item kind</span> that is <i>Plain Unicode string</i> into the text control or
data item kind</span> that is <i>text</i> into the text control or
<span>editing host</span> or <span>editable</span> element in a manner consistent with
platform-specific conventions (e.g. inserting it at the current mouse cursor position, or
inserting it at the end of the field).</p></dd>
Expand Down Expand Up @@ -124178,6 +124178,7 @@ INSERT INTERFACES HERE
&#x5442;&#x5eb7;&#x8c6a; (KangHao Lu)<!-- Kenny, kennyluck-->,
Karl Dubost,
Karl Tomlinson,
Kartik Arora,
Kartikaya Gupta,
葛依寧 (Kat Hackett),
Kathy Walton,
Expand Down

0 comments on commit 817ee1b

Please sign in to comment.