- From: poot <cvsmail@w3.org>
- Date: Fri, 23 Sep 2011 15:14:33 -0400
- To: public-html-diffs@w3.org
hixie: Explicitly mention when to render drag-cancel feedback. (whatwg r6572) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5265&r2=1.5266&f=h http://html5.org/tools/web-apps-tracker?from=6571&to=6572 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5265 retrieving revision 1.5266 diff -u -d -r1.5265 -r1.5266 --- Overview.html 23 Sep 2011 00:19:58 -0000 1.5265 +++ Overview.html 23 Sep 2011 19:14:21 -0000 1.5266 @@ -54566,33 +54566,39 @@ 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> + <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>The user agent should delete the range representing the + <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>The user agent should delete the dragged selection from the - relevant text field.</dd> + <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><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>
Received on Friday, 23 September 2011 19:14:39 UTC