W3C home > Mailing lists > Public > public-html-commits@w3.org > October 2009

html5/spec Overview.html,1.3475,1.3476

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 27 Oct 2009 07:12:14 +0000
To: public-html-commits@w3.org
Message-Id: <E1N2gE2-00083S-I9@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv30934

Modified Files:
	Overview.html 
Log Message:
Change the definition of 'source node' so that it's always a text node if a selection is being dragged. (whatwg r4341)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3475
retrieving revision 1.3476
diff -u -d -r1.3475 -r1.3476
--- Overview.html	27 Oct 2009 06:25:23 -0000	1.3475
+++ Overview.html	27 Oct 2009 07:12:11 -0000	1.3476
@@ -50862,13 +50862,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>For example:<pre>&lt;p&gt;Drop your favourite fruits below:&lt;/p&gt;
+  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>For example:<pre>&lt;p&gt;Drop your favourite fruits below:&lt;/p&gt;
 &lt;ol class="dropzone"
     ondragenter="dragEnterHandler(event)"
     ondragover="dragOverHandler(event)"
@@ -51294,14 +51295,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>
Received on Tuesday, 27 October 2009 07:12:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 07:12:26 GMT