Skip to content

Commit

Permalink
[giow] (2) Explicitly mention when to render drag-cancel feedback.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=13203

git-svn-id: http://svn.whatwg.org/webapps@6572 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 23, 2011
1 parent 989cc9b commit 68e68b7
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 66 deletions.
48 changes: 27 additions & 21 deletions complete.html
Expand Up @@ -73991,33 +73991,39 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.6.5 </span>Drag-and-dr
default action of the <code title=event-dragend><a href=#event-dragend>dragend</a></code>
event:</p>

<dl class=switch><dt>If the <a href=#current-target-element>current target element</a> is a text field
(e.g. <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element
whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
the <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and
<var title="">dropped</var> is true, and the <a href=#current-drag-operation>current drag
operation</a> is "<code title="">move</code>", and the
source of the drag-and-drop operation is a selection in the
DOM</dt>

<dd>The user agent should delete the range representing the
<dl class=switch><dt>If <var title="">dropped</var> is true, and the
<a href=#current-target-element>current target element</a> is a text field (e.g.
<code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
<code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
<a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
operation is a selection in the DOM</dt>

<dd><p>The user agent should delete the range representing the
dragged selection from the DOM.</dd>

<dt>If the <a href=#current-target-element>current target element</a> is a text field
(e.g. <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element
whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
the <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and
<var title="">dropped</var> is true, and the <a href=#current-drag-operation>current drag
operation</a> is "<code title="">move</code>", and the
source of the drag-and-drop operation is a selection in a text
field</dt>
<dt>If <var title="">dropped</var> is true, and the
<a href=#current-target-element>current target element</a> is a text field (e.g.
<code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
<code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
<a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
operation is a selection in a text field</dt>

<dd><p>The user agent should delete the dragged selection from
the relevant text field.</dd>

<dt>If the <var title="">dropped</var> is false of it the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">none</code>"</dt>

<dd>The user agent should delete the dragged selection from the
relevant text field.</dd>
<dd><p>The drag was canceled. If the platform conventions
dictate that this be represented to the user (e.g. by animating
the dragged selection going back to the source of the
drag-and-drop operation), then do so.</dd>

<dt>Otherwise</dt>

<dd>The event has no default action.</dd>
<dd><p>The event has no default action.</dd>

</dl></li>

Expand Down
48 changes: 27 additions & 21 deletions index
Expand Up @@ -73887,33 +73887,39 @@ dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit>M
default action of the <code title=event-dragend><a href=#event-dragend>dragend</a></code>
event:</p>

<dl class=switch><dt>If the <a href=#current-target-element>current target element</a> is a text field
(e.g. <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element
whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
the <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and
<var title="">dropped</var> is true, and the <a href=#current-drag-operation>current drag
operation</a> is "<code title="">move</code>", and the
source of the drag-and-drop operation is a selection in the
DOM</dt>

<dd>The user agent should delete the range representing the
<dl class=switch><dt>If <var title="">dropped</var> is true, and the
<a href=#current-target-element>current target element</a> is a text field (e.g.
<code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
<code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
<a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
operation is a selection in the DOM</dt>

<dd><p>The user agent should delete the range representing the
dragged selection from the DOM.</dd>

<dt>If the <a href=#current-target-element>current target element</a> is a text field
(e.g. <code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element
whose <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in
the <a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and
<var title="">dropped</var> is true, and the <a href=#current-drag-operation>current drag
operation</a> is "<code title="">move</code>", and the
source of the drag-and-drop operation is a selection in a text
field</dt>
<dt>If <var title="">dropped</var> is true, and the
<a href=#current-target-element>current target element</a> is a text field (e.g.
<code><a href=#the-textarea-element>textarea</a></code>, or an <code><a href=#the-input-element>input</a></code> element whose
<code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is in the
<a href=#text-state-and-search-state title=attr-input-type-text>Text</a> state), and the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">move</code>", and the source of the drag-and-drop
operation is a selection in a text field</dt>

<dd><p>The user agent should delete the dragged selection from
the relevant text field.</dd>

<dt>If the <var title="">dropped</var> is false of it the
<a href=#current-drag-operation>current drag operation</a> is "<code title="">none</code>"</dt>

<dd>The user agent should delete the dragged selection from the
relevant text field.</dd>
<dd><p>The drag was canceled. If the platform conventions
dictate that this be represented to the user (e.g. by animating
the dragged selection going back to the source of the
drag-and-drop operation), then do so.</dd>

<dt>Otherwise</dt>

<dd>The event has no default action.</dd>
<dd><p>The event has no default action.</dd>

</dl></li>

Expand Down
57 changes: 33 additions & 24 deletions source
Expand Up @@ -84338,33 +84338,42 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {

<dl class="switch">

<dt>If the <span>current target element</span> is a text field
(e.g. <code>textarea</code>, or an <code>input</code> element
whose <code title="attr-input-type">type</code> attribute is in
the <span title="attr-input-type-text">Text</span> state), and
<var title="">dropped</var> is true, and the <span>current drag
operation</span> is "<code title="">move</code>", and the
source of the drag-and-drop operation is a selection in the
DOM</dt>

<dd>The user agent should delete the range representing the
dragged selection from the DOM.</dd>

<dt>If the <span>current target element</span> is a text field
(e.g. <code>textarea</code>, or an <code>input</code> element
whose <code title="attr-input-type">type</code> attribute is in
the <span title="attr-input-type-text">Text</span> state), and
<var title="">dropped</var> is true, and the <span>current drag
operation</span> is "<code title="">move</code>", and the
source of the drag-and-drop operation is a selection in a text
field</dt>

<dd>The user agent should delete the dragged selection from the
relevant text field.</dd>
<dt>If <var title="">dropped</var> is true, and the
<span>current target element</span> is a text field (e.g.
<code>textarea</code>, or an <code>input</code> element whose
<code title="attr-input-type">type</code> attribute is in the
<span title="attr-input-type-text">Text</span> state), and the
<span>current drag operation</span> is "<code
title="">move</code>", and the source of the drag-and-drop
operation is a selection in the DOM</dt>

<dd><p>The user agent should delete the range representing the
dragged selection from the DOM.</p></dd>

<dt>If <var title="">dropped</var> is true, and the
<span>current target element</span> is a text field (e.g.
<code>textarea</code>, or an <code>input</code> element whose
<code title="attr-input-type">type</code> attribute is in the
<span title="attr-input-type-text">Text</span> state), and the
<span>current drag operation</span> is "<code
title="">move</code>", and the source of the drag-and-drop
operation is a selection in a text field</dt>

<dd><p>The user agent should delete the dragged selection from
the relevant text field.</p></dd>

<dt>If the <var title="">dropped</var> is false of it the
<span>current drag operation</span> is "<code
title="">none</code>"</dt>

<dd><p>The drag was canceled. If the platform conventions
dictate that this be represented to the user (e.g. by animating
the dragged selection going back to the source of the
drag-and-drop operation), then do so.</p></dd>

<dt>Otherwise</dt>

<dd>The event has no default action.</dd>
<dd><p>The event has no default action.</p></dd>

</dl>

Expand Down

0 comments on commit 68e68b7

Please sign in to comment.