Skip to content

Commit

Permalink
[giow] (0) Change the definition of 'source node' so that it's always…
Browse files Browse the repository at this point in the history
… a text node if a selection is being dragged.

git-svn-id: http://svn.whatwg.org/webapps@4341 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 27, 2009
1 parent 4fa68d0 commit f3f854e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 46 deletions.
31 changes: 16 additions & 15 deletions complete.html
Expand Up @@ -61302,13 +61302,14 @@ <h4 id=introduction-6><span class=secno>8.9.1 </span>Introduction</h4>
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>

Expand Down Expand Up @@ -61774,14 +61775,14 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.9.4 </span>Drag-and-dr

<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>
Expand Down
31 changes: 16 additions & 15 deletions index
Expand Up @@ -56789,13 +56789,14 @@ NETWORK:
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>

Expand Down Expand Up @@ -57261,14 +57262,14 @@ NETWORK:

<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>
Expand Down
32 changes: 16 additions & 16 deletions source
Expand Up @@ -69295,15 +69295,15 @@ interface <dfn>SQLTransactionSync</dfn> {
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>

Expand Down Expand Up @@ -69901,14 +69901,14 @@ interface <dfn>SQLTransactionSync</dfn> {

<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>
Expand Down

0 comments on commit f3f854e

Please sign in to comment.