Skip to content

Commit

Permalink
[] (0) Clarify DragEvent's MouseEvent attributes are set to 0 when th…
Browse files Browse the repository at this point in the history
…ere's no mouse interaction going on.

git-svn-id: http://svn.whatwg.org/webapps@3588 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 11, 2009
1 parent 57d9426 commit bab2eea
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
16 changes: 13 additions & 3 deletions index
Expand Up @@ -59739,7 +59739,7 @@ style/default.css</pre>
<p>The drag-and-drop processing model involves several events. They
all use the <code><a href=#dragevent>DragEvent</a></code> interface.</p>

<pre class=idl>interface <dfn id=dragevent>DragEvent</dfn> : MouseEvent {
<pre class=idl>interface <dfn id=dragevent>DragEvent</dfn> : <span>MouseEvent</span> {
readonly attribute <a href=#datatransfer>DataTransfer</a> <a href=#dom-dragevent-datatransfer title=dom-DragEvent-dataTransfer>dataTransfer</a>;

void <a href=#dom-dragevent-initdragevent title=dom-DragEvent-initDragEvent>initDragEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in <span>AbstractView</span> viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in EventTarget relatedTargetArg, in <a href=#datatransfer>DataTransfer</a> dataTransferArg);
Expand Down Expand Up @@ -60002,7 +60002,11 @@ style/default.css</pre>
<h4 id=events-fired-during-a-drag-and-drop-action><span class=secno>7.10.3 </span>Events fired during a drag-and-drop action</h4>

<p>The following events are involved in the drag-and-drop
model. <span class=impl>Whenever the processing model described
model.</p>

<div class=impl>

<p>Whenever the processing model described
below causes one of these events to be fired, the event fired must
use the <code><a href=#dragevent>DragEvent</a></code> interface defined above, must have
the bubbling and cancelable behaviors given in the table below, and
Expand All @@ -60011,9 +60015,15 @@ style/default.css</pre>
set to the view with which the user interacted to trigger the
drag-and-drop event, the <code title=dom-UIEvent-detail>detail</code> attribute set to zero, the
mouse and key attributes set according to the state of the input
devices as they would be for user interaction events, and the <code title="">relatedTarget</code> attribute set to null.</span></p>
devices as they would be for user interaction events, and the <code title="">relatedTarget</code> attribute set to null.</p>

<p>If there is no relevant pointing device, the object must have its
<code title="">screenX</code>, <code title="">screenY</code>, <code title="">clientX</code>, <code title="">clientY</code>, and <code title="">button</code> attributes set to 0.</p>

<!-- interaction event spec point -->

</div>

<table>

<thead>
Expand Down
18 changes: 15 additions & 3 deletions source
Expand Up @@ -65445,7 +65445,7 @@ interface <dfn>SQLTransactionSync</dfn> {
<p>The drag-and-drop processing model involves several events. They
all use the <code>DragEvent</code> interface.</p>

<pre class="idl">interface <dfn>DragEvent</dfn> : MouseEvent {
<pre class="idl">interface <dfn>DragEvent</dfn> : <span>MouseEvent</span> {
readonly attribute <span>DataTransfer</span> <span title="dom-DragEvent-dataTransfer">dataTransfer</span>;

void <span title="dom-DragEvent-initDragEvent">initDragEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in <span>AbstractView</span> viewArg, in long detailArg, in long screenXArg, in long screenYArg, in long clientXArg, in long clientYArg, in boolean ctrlKeyArg, in boolean altKeyArg, in boolean shiftKeyArg, in boolean metaKeyArg, in unsigned short buttonArg, in EventTarget relatedTargetArg, in <span>DataTransfer</span> dataTransferArg);
Expand Down Expand Up @@ -65755,7 +65755,11 @@ interface <dfn>SQLTransactionSync</dfn> {
<h4>Events fired during a drag-and-drop action</h4>

<p>The following events are involved in the drag-and-drop
model. <span class="impl">Whenever the processing model described
model.</p>

<div class="impl">

<p>Whenever the processing model described
below causes one of these events to be fired, the event fired must
use the <code>DragEvent</code> interface defined above, must have
the bubbling and cancelable behaviors given in the table below, and
Expand All @@ -65766,9 +65770,17 @@ interface <dfn>SQLTransactionSync</dfn> {
title="dom-UIEvent-detail">detail</code> attribute set to zero, the
mouse and key attributes set according to the state of the input
devices as they would be for user interaction events, and the <code
title="">relatedTarget</code> attribute set to null.</span></p>
title="">relatedTarget</code> attribute set to null.</p>

<p>If there is no relevant pointing device, the object must have its
<code title="">screenX</code>, <code title="">screenY</code>, <code
title="">clientX</code>, <code title="">clientY</code>, and <code
title="">button</code> attributes set to 0.</p>

<!-- interaction event spec point -->

</div>

<table>

<thead>
Expand Down

0 comments on commit bab2eea

Please sign in to comment.