[html5] r7156 - [giow] (2) Limit when effectAllowed can be set. Affected topics: HTML

whatwg at whatwg.org whatwg at whatwg.org
Thu Jun 28 15:09:44 PDT 2012


Author: ianh
Date: 2012-06-28 15:09:43 -0700 (Thu, 28 Jun 2012)
New Revision: 7156

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Limit when effectAllowed can be set.
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-06-28 22:02:05 UTC (rev 7155)
+++ complete.html	2012-06-28 22:09:43 UTC (rev 7156)
@@ -77000,7 +77000,8 @@
 
     <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><a href=#event-dragstart>dragstart</a></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 title="">copyMove</code>", "<code title="">link</code>", "<code title="">linkMove</code>", "<code title="">move</code>", "<code title="">all</code>", and "<code title="">uninitialized</code>",</p>
 
@@ -77106,8 +77107,13 @@
   during the <code title=event-dragenter><a href=#event-dragenter>dragenter</a></code> and <code title=event-dragover><a href=#event-dragover>dragover</a></code> events. When the
   <code><a href=#datatransfer>DataTransfer</a></code> object is created, the <code title=dom-DataTransfer-effectAllowed><a href=#dom-datatransfer-effectallowed>effectAllowed</a></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 title="">uninitialized</code>", then the attribute's current value
-  must be set to the new value. Other values must be ignored.</p>
+  current value. On setting, if <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data store mode">mode</a> is the <a href=#concept-dnd-rw title=concept-dnd-rw>read/write mode</a> 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. Otherwise it must be left
+  unchanged.</p>
 
   <p>The <dfn id=dom-datatransfer-items title=dom-DataTransfer-items><code>items</code></dfn>
   attribute must return a <code><a href=#datatransferitemlist>DataTransferItemList</a></code> object
@@ -77122,7 +77128,7 @@
    Nothing happens.</li>
 
    <li><p>If the <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data
-   store mode">mode</a> is not in the <a href=#concept-dnd-rw title=concept-dnd-rw>read/write mode</a>, abort these steps.
+   store mode">mode</a> is not the <a href=#concept-dnd-rw title=concept-dnd-rw>read/write mode</a>, abort these steps.
    Nothing happens.</li>
 
    <li><p>If the <var title="">element</var> argument is an
@@ -77196,7 +77202,7 @@
    string and abort these steps.</li>
 
    <li><p>If the <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data
-   store mode">mode</a> is in the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, return the empty
+   store mode">mode</a> is the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, return the empty
    string and abort these steps.</li>
 
    <li><p>Let <var title="">format</var> be the first argument,
@@ -77312,7 +77318,7 @@
    empty list <var title="">L</var>.</li>
 
    <li><p>If the <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data
-   store mode">mode</a> is in the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, abort these steps;
+   store mode">mode</a> is the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, abort these steps;
    return the empty list <var title="">L</var>.</li>
 
    <li><p>For each item in the <a href=#drag-data-store-item-list>drag data store item list</a>
@@ -77883,7 +77889,8 @@
 
    <li><p>Set the <a href=#drag-data-store-allowed-effects-state>drag data store allowed effects state</a>
    to the current value of <var title="">dataTransfer</var>'s <code title=dom-DataTransfer-effectAllowed><a href=#dom-datatransfer-effectallowed>effectAllowed</a></code>
-   attribute.</li>
+   attribute. (It can only have changed value if <var title="">e</var>
+   is <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code>.)</li>
 
    <li><p>Set the <a href=#drag-data-store-mode>drag data store mode</a> back to the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a> if it was changed in
    the first step.</li>
@@ -78622,9 +78629,7 @@
      <td>Varies</td>
     </table><p>Not shown in the above table: all these events bubble, and the
   <code title=dom-DataTransfer-effectAllowed><a href=#dom-datatransfer-effectallowed>effectAllowed</a></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><a href=#event-dragstart>dragstart</a></code> event.</p>
+  attribute always has the value it had after the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event, defaulting to "<code title="">uninitialized</code>" in the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event.</p>
 
 
 

Modified: index
===================================================================
--- index	2012-06-28 22:02:05 UTC (rev 7155)
+++ index	2012-06-28 22:09:43 UTC (rev 7156)
@@ -77000,7 +77000,8 @@
 
     <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><a href=#event-dragstart>dragstart</a></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 title="">copyMove</code>", "<code title="">link</code>", "<code title="">linkMove</code>", "<code title="">move</code>", "<code title="">all</code>", and "<code title="">uninitialized</code>",</p>
 
@@ -77106,8 +77107,13 @@
   during the <code title=event-dragenter><a href=#event-dragenter>dragenter</a></code> and <code title=event-dragover><a href=#event-dragover>dragover</a></code> events. When the
   <code><a href=#datatransfer>DataTransfer</a></code> object is created, the <code title=dom-DataTransfer-effectAllowed><a href=#dom-datatransfer-effectallowed>effectAllowed</a></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 title="">uninitialized</code>", then the attribute's current value
-  must be set to the new value. Other values must be ignored.</p>
+  current value. On setting, if <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data store mode">mode</a> is the <a href=#concept-dnd-rw title=concept-dnd-rw>read/write mode</a> 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. Otherwise it must be left
+  unchanged.</p>
 
   <p>The <dfn id=dom-datatransfer-items title=dom-DataTransfer-items><code>items</code></dfn>
   attribute must return a <code><a href=#datatransferitemlist>DataTransferItemList</a></code> object
@@ -77122,7 +77128,7 @@
    Nothing happens.</li>
 
    <li><p>If the <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data
-   store mode">mode</a> is not in the <a href=#concept-dnd-rw title=concept-dnd-rw>read/write mode</a>, abort these steps.
+   store mode">mode</a> is not the <a href=#concept-dnd-rw title=concept-dnd-rw>read/write mode</a>, abort these steps.
    Nothing happens.</li>
 
    <li><p>If the <var title="">element</var> argument is an
@@ -77196,7 +77202,7 @@
    string and abort these steps.</li>
 
    <li><p>If the <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data
-   store mode">mode</a> is in the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, return the empty
+   store mode">mode</a> is the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, return the empty
    string and abort these steps.</li>
 
    <li><p>Let <var title="">format</var> be the first argument,
@@ -77312,7 +77318,7 @@
    empty list <var title="">L</var>.</li>
 
    <li><p>If the <a href=#drag-data-store>drag data store</a>'s <a href=#drag-data-store-mode title="drag data
-   store mode">mode</a> is in the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, abort these steps;
+   store mode">mode</a> is the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a>, abort these steps;
    return the empty list <var title="">L</var>.</li>
 
    <li><p>For each item in the <a href=#drag-data-store-item-list>drag data store item list</a>
@@ -77883,7 +77889,8 @@
 
    <li><p>Set the <a href=#drag-data-store-allowed-effects-state>drag data store allowed effects state</a>
    to the current value of <var title="">dataTransfer</var>'s <code title=dom-DataTransfer-effectAllowed><a href=#dom-datatransfer-effectallowed>effectAllowed</a></code>
-   attribute.</li>
+   attribute. (It can only have changed value if <var title="">e</var>
+   is <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code>.)</li>
 
    <li><p>Set the <a href=#drag-data-store-mode>drag data store mode</a> back to the <a href=#concept-dnd-p title=concept-dnd-p>protected mode</a> if it was changed in
    the first step.</li>
@@ -78622,9 +78629,7 @@
      <td>Varies</td>
     </table><p>Not shown in the above table: all these events bubble, and the
   <code title=dom-DataTransfer-effectAllowed><a href=#dom-datatransfer-effectallowed>effectAllowed</a></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><a href=#event-dragstart>dragstart</a></code> event.</p>
+  attribute always has the value it had after the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event, defaulting to "<code title="">uninitialized</code>" in the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event.</p>
 
 
 

Modified: source
===================================================================
--- source	2012-06-28 22:02:05 UTC (rev 7155)
+++ source	2012-06-28 22:09:43 UTC (rev 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>
 
 
 




More information about the Commit-Watchers mailing list