Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Remove the drag-and-drop-is-copy-and-paste idea.
git-svn-id: http://svn.whatwg.org/webapps@4644 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 4, 2010
1 parent 04f27ef commit f581ea2
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 52 deletions.
55 changes: 30 additions & 25 deletions complete.html
Expand Up @@ -110,7 +110,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 2 February 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 4 February 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -841,13 +841,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
<li><a href=#when-the-drag-and-drop-operation-starts-or-ends-in-another-application><span class=secno>8.9.4.2 </span>When the drag-and-drop operation starts or ends in another
application</a></ol></li>
<li><a href=#the-draggable-attribute><span class=secno>8.9.5 </span>The <code>draggable</code> attribute</a></li>
<li><a href=#copy-and-paste><span class=secno>8.9.6 </span>Copy and paste</a>
<ol>
<li><a href=#copy-to-clipboard><span class=secno>8.9.6.1 </span>Copy to clipboard</a></li>
<li><a href=#cut-to-clipboard><span class=secno>8.9.6.2 </span>Cut to clipboard</a></li>
<li><a href=#paste-from-clipboard><span class=secno>8.9.6.3 </span>Paste from clipboard</a></li>
<li><a href=#paste-from-selection><span class=secno>8.9.6.4 </span>Paste from selection</a></ol></li>
<li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>8.9.7 </span>Security risks in the drag-and-drop model</a></ol></li>
<li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>8.9.6 </span>Security risks in the drag-and-drop model</a></ol></li>
<li><a href=#undo><span class=secno>8.10 </span>Undo history</a>
<ol>
<li><a href=#definitions-2><span class=secno>8.10.1 </span>Definitions</a></li>
Expand Down Expand Up @@ -62768,8 +62762,8 @@ <h4 id=the-draggable-attribute><span class=secno>8.9.5 </span>The <dfn title=att
</div>



<h4 id=copy-and-paste><span class=secno>8.9.6 </span>Copy and paste</h4>
<!--
<h4>Copy and paste</h4>

<p>Copy-and-paste is a form of drag-and-drop: the "copy" part is
equivalent to dragging content to another application (the
Expand All @@ -62781,34 +62775,41 @@ <h4 id=copy-and-paste><span class=secno>8.9.6 </span>Copy and paste</h4>
source is the selection.</p>


<div class=impl>
<div class="impl">

<h5 id=copy-to-clipboard><span class=secno>8.9.6.1 </span>Copy to clipboard</h5>
<h5>Copy to clipboard</h5>

<p>When the user invokes a copy operation, the user agent must act
as if the user had invoked a drag on the current selection. If the
drag-and-drop operation initiates, then the user agent must act as
if the user had indicated (as the <a href=#immediate-user-selection>immediate user
selection</a>) a hypothetical application representing the
if the user had indicated (as the <span>immediate user
selection</span>) a hypothetical application representing the
clipboard. Then, the user agent must act as if the user had ended
the drag-and-drop operation without canceling it. If the
drag-and-drop operation didn't get canceled, the user agent should
then follow the relevant platform-specific conventions for copy
operations (e.g. updating the clipboard).</p>

<p>The events involved in this process are the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code>, <code title=event-drag><a href=#event-drag>drag</a></code>, and <code title=event-dragend><a href=#event-dragend>dragend</a></code> events.</p>
<p>The events involved in this process are the <code
title="event-dragstart">dragstart</code>, <code
title="event-drag">drag</code>, and <code
title="event-dragend">dragend</code> events.</p>


<h5 id=cut-to-clipboard><span class=secno>8.9.6.2 </span>Cut to clipboard</h5>
<h5>Cut to clipboard</h5>

<p>When the user invokes a cut operation, the user agent must act as
if the user had invoked a copy operation (see the previous section),
followed, if the copy was completed successfully, by <a href=#contenteditable-delete>a selection delete operation</a>.</p>
followed, if the copy was completed successfully, by <a
href="#contenteditable-delete">a selection delete operation</a>.</p>

<p>The events involved in this process are the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code>, <code title=event-drag><a href=#event-drag>drag</a></code>, and <code title=event-dragend><a href=#event-dragend>dragend</a></code> events.</p>
<p>The events involved in this process are the <code
title="event-dragstart">dragstart</code>, <code
title="event-drag">drag</code>, and <code
title="event-dragend">dragend</code> events.</p>


<h5 id=paste-from-clipboard><span class=secno>8.9.6.3 </span>Paste from clipboard</h5>
<h5>Paste from clipboard</h5>

<p>When the user invokes a clipboard paste operation, the user agent
must act as if the user had invoked a drag on a hypothetical
Expand All @@ -62817,30 +62818,34 @@ <h5 id=paste-from-clipboard><span class=secno>8.9.6.3 </span>Paste from clipboar
are available).</p>

<p>Then, the user agent must act as if the user had indicated (as
the <a href=#immediate-user-selection>immediate user selection</a>) the element with the
the <span>immediate user selection</span>) the element with the
keyboard focus, and then ended the drag-and-drop operation without
canceling it.</p>

<p>The events involved in this process are the <code title=event-dragenter><a href=#event-dragenter>dragenter</a></code>, <code title=event-dragover><a href=#event-dragover>dragover</a></code>, <code title=event-dragleave><a href=#event-dragleave>dragleave</a></code>, and <code title=event-drop><a href=#event-drop>drop</a></code> events.</p>
<p>The events involved in this process are the <code
title="event-dragenter">dragenter</code>, <code
title="event-dragover">dragover</code>, <code
title="event-dragleave">dragleave</code>, and <code
title="event-drop">drop</code> events.</p>


<h5 id=paste-from-selection><span class=secno>8.9.6.4 </span>Paste from selection</h5>
<h5>Paste from selection</h5>

<p>When the user invokes a selection paste operation, the user agent
must act as if the user had invoked a drag on the current selection,
then indicated (as the <a href=#immediate-user-selection>immediate user selection</a>) the
then indicated (as the <span>immediate user selection</span>) the
element with the keyboard focus, and then ended the drag-and-drop
operation without canceling it.</p>

<p>All the drag-and-drop events can be involved in this process.</p>

</div>

-->


<div class=impl>

<h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.9.7 </span>Security risks in the drag-and-drop model</h4>
<h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.9.6 </span>Security risks in the drag-and-drop model</h4>

<p>User agents must not make the data added to the
<code><a href=#datatransfer>DataTransfer</a></code> object during the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event available to scripts
Expand Down
55 changes: 30 additions & 25 deletions index
Expand Up @@ -112,7 +112,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 2 February 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 4 February 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -826,13 +826,7 @@
<li><a href=#when-the-drag-and-drop-operation-starts-or-ends-in-another-application><span class=secno>7.9.4.2 </span>When the drag-and-drop operation starts or ends in another
application</a></ol></li>
<li><a href=#the-draggable-attribute><span class=secno>7.9.5 </span>The <code>draggable</code> attribute</a></li>
<li><a href=#copy-and-paste><span class=secno>7.9.6 </span>Copy and paste</a>
<ol>
<li><a href=#copy-to-clipboard><span class=secno>7.9.6.1 </span>Copy to clipboard</a></li>
<li><a href=#cut-to-clipboard><span class=secno>7.9.6.2 </span>Cut to clipboard</a></li>
<li><a href=#paste-from-clipboard><span class=secno>7.9.6.3 </span>Paste from clipboard</a></li>
<li><a href=#paste-from-selection><span class=secno>7.9.6.4 </span>Paste from selection</a></ol></li>
<li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>7.9.7 </span>Security risks in the drag-and-drop model</a></ol></li>
<li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>7.9.6 </span>Security risks in the drag-and-drop model</a></ol></li>
<li><a href=#undo><span class=secno>7.10 </span>Undo history</a>
<ol>
<li><a href=#definitions-2><span class=secno>7.10.1 </span>Definitions</a></li>
Expand Down Expand Up @@ -61971,8 +61965,8 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
</div>



<h4 id=copy-and-paste><span class=secno>7.9.6 </span>Copy and paste</h4>
<!--
<h4>Copy and paste</h4>

<p>Copy-and-paste is a form of drag-and-drop: the "copy" part is
equivalent to dragging content to another application (the
Expand All @@ -61984,34 +61978,41 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
source is the selection.</p>


<div class=impl>
<div class="impl">

<h5 id=copy-to-clipboard><span class=secno>7.9.6.1 </span>Copy to clipboard</h5>
<h5>Copy to clipboard</h5>

<p>When the user invokes a copy operation, the user agent must act
as if the user had invoked a drag on the current selection. If the
drag-and-drop operation initiates, then the user agent must act as
if the user had indicated (as the <a href=#immediate-user-selection>immediate user
selection</a>) a hypothetical application representing the
if the user had indicated (as the <span>immediate user
selection</span>) a hypothetical application representing the
clipboard. Then, the user agent must act as if the user had ended
the drag-and-drop operation without canceling it. If the
drag-and-drop operation didn't get canceled, the user agent should
then follow the relevant platform-specific conventions for copy
operations (e.g. updating the clipboard).</p>

<p>The events involved in this process are the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code>, <code title=event-drag><a href=#event-drag>drag</a></code>, and <code title=event-dragend><a href=#event-dragend>dragend</a></code> events.</p>
<p>The events involved in this process are the <code
title="event-dragstart">dragstart</code>, <code
title="event-drag">drag</code>, and <code
title="event-dragend">dragend</code> events.</p>


<h5 id=cut-to-clipboard><span class=secno>7.9.6.2 </span>Cut to clipboard</h5>
<h5>Cut to clipboard</h5>

<p>When the user invokes a cut operation, the user agent must act as
if the user had invoked a copy operation (see the previous section),
followed, if the copy was completed successfully, by <a href=#contenteditable-delete>a selection delete operation</a>.</p>
followed, if the copy was completed successfully, by <a
href="#contenteditable-delete">a selection delete operation</a>.</p>

<p>The events involved in this process are the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code>, <code title=event-drag><a href=#event-drag>drag</a></code>, and <code title=event-dragend><a href=#event-dragend>dragend</a></code> events.</p>
<p>The events involved in this process are the <code
title="event-dragstart">dragstart</code>, <code
title="event-drag">drag</code>, and <code
title="event-dragend">dragend</code> events.</p>


<h5 id=paste-from-clipboard><span class=secno>7.9.6.3 </span>Paste from clipboard</h5>
<h5>Paste from clipboard</h5>

<p>When the user invokes a clipboard paste operation, the user agent
must act as if the user had invoked a drag on a hypothetical
Expand All @@ -62020,30 +62021,34 @@ State: &lt;OUTPUT NAME=I&gt;1&lt;/OUTPUT&gt; &lt;INPUT VALUE="Increment" TYPE=BU
are available).</p>

<p>Then, the user agent must act as if the user had indicated (as
the <a href=#immediate-user-selection>immediate user selection</a>) the element with the
the <span>immediate user selection</span>) the element with the
keyboard focus, and then ended the drag-and-drop operation without
canceling it.</p>

<p>The events involved in this process are the <code title=event-dragenter><a href=#event-dragenter>dragenter</a></code>, <code title=event-dragover><a href=#event-dragover>dragover</a></code>, <code title=event-dragleave><a href=#event-dragleave>dragleave</a></code>, and <code title=event-drop><a href=#event-drop>drop</a></code> events.</p>
<p>The events involved in this process are the <code
title="event-dragenter">dragenter</code>, <code
title="event-dragover">dragover</code>, <code
title="event-dragleave">dragleave</code>, and <code
title="event-drop">drop</code> events.</p>


<h5 id=paste-from-selection><span class=secno>7.9.6.4 </span>Paste from selection</h5>
<h5>Paste from selection</h5>

<p>When the user invokes a selection paste operation, the user agent
must act as if the user had invoked a drag on the current selection,
then indicated (as the <a href=#immediate-user-selection>immediate user selection</a>) the
then indicated (as the <span>immediate user selection</span>) the
element with the keyboard focus, and then ended the drag-and-drop
operation without canceling it.</p>

<p>All the drag-and-drop events can be involved in this process.</p>

</div>

-->


<div class=impl>

<h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>7.9.7 </span>Security risks in the drag-and-drop model</h4>
<h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>7.9.6 </span>Security risks in the drag-and-drop model</h4>

<p>User agents must not make the data added to the
<code><a href=#datatransfer>DataTransfer</a></code> object during the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event available to scripts
Expand Down
4 changes: 2 additions & 2 deletions source
Expand Up @@ -72313,7 +72313,7 @@ interface <dfn>SQLTransactionSync</dfn> {
</div>



<!--
<h4>Copy and paste</h4>

<p>Copy-and-paste is a form of drag-and-drop: the "copy" part is
Expand Down Expand Up @@ -72391,7 +72391,7 @@ interface <dfn>SQLTransactionSync</dfn> {
<p>All the drag-and-drop events can be involved in this process.</p>

</div>

-->


<div class="impl">
Expand Down

0 comments on commit f581ea2

Please sign in to comment.