- From: poot <cvsmail@w3.org>
- Date: Tue, 27 Oct 2009 16:12:33 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: Change the definition of 'source node' so that it's always a text node if a selection is being dragged. (whatwg r4341) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3475&r2=1.3476&f=h http://html5.org/tools/web-apps-tracker?from=4340&to=4341 =================================================================== 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><p>Drop your favourite fruits below:</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>For example:<pre><p>Drop your favourite fruits below:</p> <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:13:01 UTC