[html5] r4341 - [giow] (0) Change the definition of 'source node' so that it's always a text nod [...]
whatwg at whatwg.org
whatwg at whatwg.org
Tue Oct 27 00:12:17 PDT 2009
Author: ianh
Date: 2009-10-27 00:12:13 -0700 (Tue, 27 Oct 2009)
New Revision: 4341
Modified:
complete.html
index
source
Log:
[giow] (0) Change the definition of 'source node' so that it's always a text node if a selection is being dragged.
Modified: complete.html
===================================================================
--- complete.html 2009-10-27 06:25:25 UTC (rev 4340)
+++ complete.html 2009-10-27 07:12:13 UTC (rev 4341)
@@ -61302,13 +61302,14 @@
to accept the drop. If the drop is to be accepted, then this event
has to be canceled. Second, the <code title=event-dragover><a href=#event-dragover>dragover</a></code> event, which is used to
determine what feedback is to be shown to the user. If the event is
- not canceled, then the feedback (typically the cursor) is updated
- based on the <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code> attribute's
- value, as set by the event handler. Finally, the <code title=event-drop><a href=#event-drop>drop</a></code> event, which allows the actual drop
- to be performed. This event also needs to be canceled so that the
- <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code>
- attribute's value can be used by the source (otherwise it's
- reset).</p>
+ canceled, then the feedback (typically the cursor) is updated based
+ on the <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code>
+ attribute's value, as set by the event handler; otherwise, the
+ default behavior (typically to do nothing) is used instead. Finally,
+ the <code title=event-drop><a href=#event-drop>drop</a></code> event, which allows the
+ actual drop to be performed. This event also needs to be canceled,
+ so that the <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code> attribute's
+ value can be used by the source (otherwise it's reset).</p>
<p>For example:</p>
@@ -61774,14 +61775,14 @@
<p>The <dfn id=source-node>source node</dfn> depends on the kind of drag and how it
was initiated. If it is a selection that is being dragged, then the
- <a href=#source-node>source node</a> is the node that the user started the drag
- on (typically the text node that the user originally clicked). If
- the user did not specify a particular node, for example if the user
- just told the user agent to begin a drag of "the selection", then
- the <a href=#source-node>source node</a> is the deepest node that is a common
- ancestor of all parts of the selection. If it is not a selection
- that is being dragged, then the <a href=#source-node>source node</a> is the
- element that is being dragged.</p>
+ <a href=#source-node>source node</a> is the text node that the user started the
+ drag on (typically the text node that the user originally
+ clicked). If the user did not specify a particular node, for example
+ if the user just told the user agent to begin a drag of "the
+ selection", then the <a href=#source-node>source node</a> is the first text node
+ containing a part of the selection. If it is not a selection that is
+ being dragged, then the <a href=#source-node>source node</a> is the element that
+ is being dragged.</p>
<p>Multiple events are fired on the <a href=#source-node>source node</a> during
the course of the drag-and-drop operation.</p>
Modified: index
===================================================================
--- index 2009-10-27 06:25:25 UTC (rev 4340)
+++ index 2009-10-27 07:12:13 UTC (rev 4341)
@@ -56789,13 +56789,14 @@
to accept the drop. If the drop is to be accepted, then this event
has to be canceled. Second, the <code title=event-dragover><a href=#event-dragover>dragover</a></code> event, which is used to
determine what feedback is to be shown to the user. If the event is
- not canceled, then the feedback (typically the cursor) is updated
- based on the <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code> attribute's
- value, as set by the event handler. Finally, the <code title=event-drop><a href=#event-drop>drop</a></code> event, which allows the actual drop
- to be performed. This event also needs to be canceled so that the
- <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code>
- attribute's value can be used by the source (otherwise it's
- reset).</p>
+ canceled, then the feedback (typically the cursor) is updated based
+ on the <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code>
+ attribute's value, as set by the event handler; otherwise, the
+ default behavior (typically to do nothing) is used instead. Finally,
+ the <code title=event-drop><a href=#event-drop>drop</a></code> event, which allows the
+ actual drop to be performed. This event also needs to be canceled,
+ so that the <code title=dom-DataTransfer-DropEffect><a href=#dom-datatransfer-dropeffect>dropEffect</a></code> attribute's
+ value can be used by the source (otherwise it's reset).</p>
<p>For example:</p>
@@ -57261,14 +57262,14 @@
<p>The <dfn id=source-node>source node</dfn> depends on the kind of drag and how it
was initiated. If it is a selection that is being dragged, then the
- <a href=#source-node>source node</a> is the node that the user started the drag
- on (typically the text node that the user originally clicked). If
- the user did not specify a particular node, for example if the user
- just told the user agent to begin a drag of "the selection", then
- the <a href=#source-node>source node</a> is the deepest node that is a common
- ancestor of all parts of the selection. If it is not a selection
- that is being dragged, then the <a href=#source-node>source node</a> is the
- element that is being dragged.</p>
+ <a href=#source-node>source node</a> is the text node that the user started the
+ drag on (typically the text node that the user originally
+ clicked). If the user did not specify a particular node, for example
+ if the user just told the user agent to begin a drag of "the
+ selection", then the <a href=#source-node>source node</a> is the first text node
+ containing a part of the selection. If it is not a selection that is
+ being dragged, then the <a href=#source-node>source node</a> is the element that
+ is being dragged.</p>
<p>Multiple events are fired on the <a href=#source-node>source node</a> during
the course of the drag-and-drop operation.</p>
Modified: source
===================================================================
--- source 2009-10-27 06:25:25 UTC (rev 4340)
+++ source 2009-10-27 07:12:13 UTC (rev 4341)
@@ -69295,15 +69295,15 @@
has to be canceled. Second, the <code
title="event-dragover">dragover</code> event, which is used to
determine what feedback is to be shown to the user. If the event is
- not canceled, then the feedback (typically the cursor) is updated
- based on the <code
+ canceled, then the feedback (typically the cursor) is updated based
+ on the <code title="dom-DataTransfer-DropEffect">dropEffect</code>
+ attribute's value, as set by the event handler; otherwise, the
+ default behavior (typically to do nothing) is used instead. Finally,
+ the <code title="event-drop">drop</code> event, which allows the
+ actual drop to be performed. This event also needs to be canceled,
+ so that the <code
title="dom-DataTransfer-DropEffect">dropEffect</code> attribute's
- value, as set by the event handler. Finally, the <code
- title="event-drop">drop</code> event, which allows the actual drop
- to be performed. This event also needs to be canceled so that the
- <code title="dom-DataTransfer-DropEffect">dropEffect</code>
- attribute's value can be used by the source (otherwise it's
- reset).</p>
+ value can be used by the source (otherwise it's reset).</p>
<p>For example:</p>
@@ -69901,14 +69901,14 @@
<p>The <dfn>source node</dfn> depends on the kind of drag and how it
was initiated. If it is a selection that is being dragged, then the
- <span>source node</span> is the node that the user started the drag
- on (typically the text node that the user originally clicked). If
- the user did not specify a particular node, for example if the user
- just told the user agent to begin a drag of "the selection", then
- the <span>source node</span> is the deepest node that is a common
- ancestor of all parts of the selection. If it is not a selection
- that is being dragged, then the <span>source node</span> is the
- element that is being dragged.</p>
+ <span>source node</span> is the text node that the user started the
+ drag on (typically the text node that the user originally
+ clicked). If the user did not specify a particular node, for example
+ if the user just told the user agent to begin a drag of "the
+ selection", then the <span>source node</span> is the first text node
+ containing a part of the selection. If it is not a selection that is
+ being dragged, then the <span>source node</span> is the element that
+ is being dragged.</p>
<p>Multiple events are fired on the <span>source node</span> during
the course of the drag-and-drop operation.</p>
More information about the Commit-Watchers
mailing list