HTML5 Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/7156

SVNBugCommentTime (UTC)
7156[Gecko] [Internet Explorer] [Opera] [Webkit] Limit when effectAllowed can be set.2012-06-28 22:09
Index: source
===================================================================
--- source	(revision 7155)
+++ source	(revision 7156)
@@ -90096,7 +90096,9 @@
 
     <p>Returns the kinds of operations that are to be allowed.</p>
 
-    <p>Can be set, to change the allowed operations.</p>
+    <p>Can be set (during the <code
+    title="event-dragstart">dragstart</code> event), to change the
+    allowed operations.</p>
 
     <p>The possible values are "<code title="">none</code>", "<code
     title="">copy</code>", "<code title="">copyLink</code>", "<code
@@ -90215,13 +90217,16 @@
   <code>DataTransfer</code> object is created, the <code
   title="dom-DataTransfer-effectAllowed">effectAllowed</code>
   attribute is set to a string value. On getting, it must return its
-  current value. On setting, if the new value is one of "<code
-  title="">none</code>", "<code title="">copy</code>", "<code
-  title="">copyLink</code>", "<code title="">copyMove</code>", "<code
-  title="">link</code>", "<code title="">linkMove</code>", "<code
-  title="">move</code>", "<code title="">all</code>", or "<code
+  current value. On setting, if <span>drag data store</span>'s <span
+  title="drag data store mode">mode</span> is the <span
+  title="concept-dnd-rw">read/write mode</span> and the new value is
+  one of "<code title="">none</code>", "<code title="">copy</code>",
+  "<code title="">copyLink</code>", "<code title="">copyMove</code>",
+  "<code title="">link</code>", "<code title="">linkMove</code>",
+  "<code title="">move</code>", "<code title="">all</code>", or "<code
   title="">uninitialized</code>", then the attribute's current value
-  must be set to the new value. Other values must be ignored.</p>
+  must be set to the new value. Otherwise it must be left
+  unchanged.</p>
 
   <p>The <dfn title="dom-DataTransfer-items"><code>items</code></dfn>
   attribute must return a <code>DataTransferItemList</code> object
@@ -90241,7 +90246,7 @@
    Nothing happens.</p></li>
 
    <li><p>If the <span>drag data store</span>'s <span title="drag data
-   store mode">mode</span> is not in the <span
+   store mode">mode</span> is not the <span
    title="concept-dnd-rw">read/write mode</span>, abort these steps.
    Nothing happens.</p></li>
 
@@ -90335,7 +90340,7 @@
    string and abort these steps.</p></li>
 
    <li><p>If the <span>drag data store</span>'s <span title="drag data
-   store mode">mode</span> is in the <span
+   store mode">mode</span> is the <span
    title="concept-dnd-p">protected mode</span>, return the empty
    string and abort these steps.</p></li>
 
@@ -90493,7 +90498,7 @@
    empty list <var title="">L</var>.</p></li>
 
    <li><p>If the <span>drag data store</span>'s <span title="drag data
-   store mode">mode</span> is in the <span
+   store mode">mode</span> is the <span
    title="concept-dnd-p">protected mode</span>, abort these steps;
    return the empty list <var title="">L</var>.</p></li>
 
@@ -91169,7 +91174,8 @@
    <li><p>Set the <span>drag data store allowed effects state</span>
    to the current value of <var title="">dataTransfer</var>'s <code
    title="dom-DataTransfer-effectAllowed">effectAllowed</code>
-   attribute.</p></li>
+   attribute. (It can only have changed value if <var title="">e</var>
+   is <code title="event-dragstart">dragstart</code>.)</p></li>
 
    <li><p>Set the <span>drag data store mode</span> back to the <span
    title="concept-dnd-p">protected mode</span> if it was changed in
@@ -92095,9 +92101,10 @@
 
   <p>Not shown in the above table: all these events bubble, and the
   <code title="dom-DataTransfer-effectAllowed">effectAllowed</code>
-  attribute always has the value it had after the previous event was
-  fired, defaulting to "<code title="">uninitialized</code>" in the
-  <code title="event-dragstart">dragstart</code> event.</p>
+  attribute always has the value it had after the <code
+  title="event-dragstart">dragstart</code> event, defaulting to "<code
+  title="">uninitialized</code>" in the <code
+  title="event-dragstart">dragstart</code> event.</p>
 
 
 

|