[html5] r5658 - [giow] (0) dropzone 5/5, part 1: skeleton of dropzone='' section; update DND pro [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Oct 29 16:39:52 PDT 2010


Author: ianh
Date: 2010-10-29 16:39:51 -0700 (Fri, 29 Oct 2010)
New Revision: 5658

Modified:
   complete.html
   index
   source
Log:
[giow] (0) dropzone 5/5, part 1: skeleton of dropzone='' section; update DND processing model; enumerate where sections that need updating.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712

Modified: complete.html
===================================================================
--- complete.html	2010-10-29 23:28:22 UTC (rev 5657)
+++ complete.html	2010-10-29 23:39:51 UTC (rev 5658)
@@ -967,7 +967,8 @@
      <li><a href=#drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-drop processing model</a></li>
      <li><a href=#dndevents><span class=secno>8.7.6 </span>Events summary</a></li>
      <li><a href=#the-draggable-attribute><span class=secno>8.7.7 </span>The <code>draggable</code> attribute</a></li>
-     <li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>8.7.8 </span>Security risks in the drag-and-drop model</a></ol></li>
+     <li><a href=#the-dropzone-attribute><span class=secno>8.7.8 </span>The <code>dropzone</code> attribute</a></li>
+     <li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>8.7.9 </span>Security risks in the drag-and-drop model</a></ol></li>
    <li><a href=#undo><span class=secno>8.8 </span>Undo history</a>
     <ol>
      <li><a href=#definitions-2><span class=secno>8.8.1 </span>Definitions</a></li>
@@ -65970,7 +65971,7 @@
       <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a> by the API.</p>
 
       <p class=note>Strings that contain <a href=#space-character title="space
-      character">space characters</a> cannot be used with the <code title=attr-dropzone>dropzone</code> attribute, so authors are
+      character">space characters</a> cannot be used with the <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute, so authors are
       encouraged to use only <a href=#mime-type title="MIME type">MIME types</a>
       or custom strings (without spaces).</p>
 
@@ -67331,8 +67332,16 @@
          <dd><p>Set the <a href=#current-target-element>current target element</a> to the
          <a href=#immediate-user-selection>immediate user selection</a> anyway.</dd>
 
-<!-- dropzone -->
 
+         <dt>If the <a href=#current-target-element>current target element</a> is an element
+         with a <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute
+         that <a href=#concept-dropzone-match title=concept-dropzone-match>matches</a> the
+         <a href=#drag-data-store>drag data store</a></dt>
+
+         <dd><p>Set the <a href=#current-target-element>current target element</a> to the
+         <a href=#immediate-user-selection>immediate user selection</a> anyway.</dd>
+
+
          <dt>If the <a href=#current-target-element>current target element</a> is
          <a href=#the-body-element>the body element</a></dt>
 
@@ -67393,8 +67402,19 @@
        "<code title="">copy</code>" or "<code title="">move</code>",
        as appropriate given the platform conventions.</dd>
 
-<!--dropzone-->
 
+       <dt>If the <a href=#current-target-element>current target element</a> is an element
+       with a <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute
+       that <a href=#concept-dropzone-match title=concept-dropzone-match>matches</a> the
+       <a href=#drag-data-store>drag data store</a> and <a href=#concept-dropzone-operation title=concept-dropzone-operation>specifies an
+       operation</a></dt>
+
+       <dd><p>Set the <a href=#current-drag-operation>current drag operation</a> to the
+       operation <a href=#concept-dropzone-operation title=concept-dropzone-operation>specified</a> by the
+       <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute of the
+       <a href=#current-target-element>current target element</a>.</p>
+
+
        <dt>Otherwise</dt>
 
        <dd><p>Reset the <a href=#current-drag-operation>current drag operation</a> to "<code title="">none</code>".</dd>
@@ -67719,12 +67739,32 @@
   </div>
 
 
-<!--
-XXX DND WIP plan:
- 5. add dropzone="..." feature
--->
+  <h4 id=the-dropzone-attribute><span class=secno>8.7.8 </span>The <dfn title=attr-dropzone><code>dropzone</code></dfn> attribute</h4>
 
+  <p>All <a href=#html-elements>HTML elements</a> may have the <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> content attribute set. <a class=XXX href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated tokens</a>,
+  <a href=#ascii-case-insensitive>ASCII case-insensitive</a></p>
 
+  <p class=XXX>A <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code>
+  attribute <dfn id=concept-dropzone-match title=concept-dropzone-match>matches a <span>drag
+  data store</span></dfn> if...</p>
+
+  <p class=XXX>A <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code>
+  attribute <dfn id=concept-dropzone-operation title=concept-dropzone-operation>specifies an
+  operation</dfn> if... The specified operation is...</p>
+
+  <p>The <dfn id=dom-dropzone title=dom-dropzone><code>dropzone</code></dfn>
+  attribute must <a href=#reflect>reflect</a> the content attribute of the
+  same name.</p>
+
+  <!-- XXX dropzone add to:
+    HTMLElement IDL
+    Global Attributes list
+    List of focusable elements, with caveat
+    DND introduction
+    Attribute index
+  -->
+
+
 <!--
   <h4>Copy and paste</h4>
 
@@ -67808,7 +67848,7 @@
 
   <div class=impl>
 
-  <h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.7.8 </span>Security risks in the drag-and-drop model</h4>
+  <h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.7.9 </span>Security risks in the drag-and-drop model</h4>
 
   <p>User agents must not make the data added to the
   <code><a href=#datatransfer>DataTransfer</a></code> object during the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event available to scripts

Modified: index
===================================================================
--- index	2010-10-29 23:28:22 UTC (rev 5657)
+++ index	2010-10-29 23:39:51 UTC (rev 5658)
@@ -974,7 +974,8 @@
      <li><a href=#drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-drop processing model</a></li>
      <li><a href=#dndevents><span class=secno>8.7.6 </span>Events summary</a></li>
      <li><a href=#the-draggable-attribute><span class=secno>8.7.7 </span>The <code>draggable</code> attribute</a></li>
-     <li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>8.7.8 </span>Security risks in the drag-and-drop model</a></ol></li>
+     <li><a href=#the-dropzone-attribute><span class=secno>8.7.8 </span>The <code>dropzone</code> attribute</a></li>
+     <li><a href=#security-risks-in-the-drag-and-drop-model><span class=secno>8.7.9 </span>Security risks in the drag-and-drop model</a></ol></li>
    <li><a href=#undo><span class=secno>8.8 </span>Undo history</a>
     <ol>
      <li><a href=#definitions-2><span class=secno>8.8.1 </span>Definitions</a></li>
@@ -65976,7 +65977,7 @@
       <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a> by the API.</p>
 
       <p class=note>Strings that contain <a href=#space-character title="space
-      character">space characters</a> cannot be used with the <code title=attr-dropzone>dropzone</code> attribute, so authors are
+      character">space characters</a> cannot be used with the <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute, so authors are
       encouraged to use only <a href=#mime-type title="MIME type">MIME types</a>
       or custom strings (without spaces).</p>
 
@@ -67337,8 +67338,16 @@
          <dd><p>Set the <a href=#current-target-element>current target element</a> to the
          <a href=#immediate-user-selection>immediate user selection</a> anyway.</dd>
 
-<!-- dropzone -->
 
+         <dt>If the <a href=#current-target-element>current target element</a> is an element
+         with a <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute
+         that <a href=#concept-dropzone-match title=concept-dropzone-match>matches</a> the
+         <a href=#drag-data-store>drag data store</a></dt>
+
+         <dd><p>Set the <a href=#current-target-element>current target element</a> to the
+         <a href=#immediate-user-selection>immediate user selection</a> anyway.</dd>
+
+
          <dt>If the <a href=#current-target-element>current target element</a> is
          <a href=#the-body-element>the body element</a></dt>
 
@@ -67399,8 +67408,19 @@
        "<code title="">copy</code>" or "<code title="">move</code>",
        as appropriate given the platform conventions.</dd>
 
-<!--dropzone-->
 
+       <dt>If the <a href=#current-target-element>current target element</a> is an element
+       with a <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute
+       that <a href=#concept-dropzone-match title=concept-dropzone-match>matches</a> the
+       <a href=#drag-data-store>drag data store</a> and <a href=#concept-dropzone-operation title=concept-dropzone-operation>specifies an
+       operation</a></dt>
+
+       <dd><p>Set the <a href=#current-drag-operation>current drag operation</a> to the
+       operation <a href=#concept-dropzone-operation title=concept-dropzone-operation>specified</a> by the
+       <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute of the
+       <a href=#current-target-element>current target element</a>.</p>
+
+
        <dt>Otherwise</dt>
 
        <dd><p>Reset the <a href=#current-drag-operation>current drag operation</a> to "<code title="">none</code>".</dd>
@@ -67725,12 +67745,32 @@
   </div>
 
 
-<!--
-XXX DND WIP plan:
- 5. add dropzone="..." feature
--->
+  <h4 id=the-dropzone-attribute><span class=secno>8.7.8 </span>The <dfn title=attr-dropzone><code>dropzone</code></dfn> attribute</h4>
 
+  <p>All <a href=#html-elements>HTML elements</a> may have the <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> content attribute set. <a class=XXX href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique space-separated tokens</a>,
+  <a href=#ascii-case-insensitive>ASCII case-insensitive</a></p>
 
+  <p class=XXX>A <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code>
+  attribute <dfn id=concept-dropzone-match title=concept-dropzone-match>matches a <span>drag
+  data store</span></dfn> if...</p>
+
+  <p class=XXX>A <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code>
+  attribute <dfn id=concept-dropzone-operation title=concept-dropzone-operation>specifies an
+  operation</dfn> if... The specified operation is...</p>
+
+  <p>The <dfn id=dom-dropzone title=dom-dropzone><code>dropzone</code></dfn>
+  attribute must <a href=#reflect>reflect</a> the content attribute of the
+  same name.</p>
+
+  <!-- XXX dropzone add to:
+    HTMLElement IDL
+    Global Attributes list
+    List of focusable elements, with caveat
+    DND introduction
+    Attribute index
+  -->
+
+
 <!--
   <h4>Copy and paste</h4>
 
@@ -67814,7 +67854,7 @@
 
   <div class=impl>
 
-  <h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.7.8 </span>Security risks in the drag-and-drop model</h4>
+  <h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>8.7.9 </span>Security risks in the drag-and-drop model</h4>
 
   <p>User agents must not make the data added to the
   <code><a href=#datatransfer>DataTransfer</a></code> object during the <code title=event-dragstart><a href=#event-dragstart>dragstart</a></code> event available to scripts

Modified: source
===================================================================
--- source	2010-10-29 23:28:22 UTC (rev 5657)
+++ source	2010-10-29 23:39:51 UTC (rev 5658)
@@ -76784,8 +76784,16 @@
          <dd><p>Set the <span>current target element</span> to the
          <span>immediate user selection</span> anyway.</p></dd>
 
-<!-- dropzone -->
 
+         <dt>If the <span>current target element</span> is an element
+         with a <code title="attr-dropzone">dropzone</code> attribute
+         that <span title="concept-dropzone-match">matches</span> the
+         <span>drag data store</span></dt>
+
+         <dd><p>Set the <span>current target element</span> to the
+         <span>immediate user selection</span> anyway.</p></dd>
+
+
          <dt>If the <span>current target element</span> is
          <span>the body element</span></dt>
 
@@ -76855,8 +76863,21 @@
        "<code title="">copy</code>" or "<code title="">move</code>",
        as appropriate given the platform conventions.</p></dd>
 
-<!--dropzone-->
 
+       <dt>If the <span>current target element</span> is an element
+       with a <code title="attr-dropzone">dropzone</code> attribute
+       that <span title="concept-dropzone-match">matches</span> the
+       <span>drag data store</span> and <span
+       title="concept-dropzone-operation">specifies an
+       operation</span></dt>
+
+       <dd><p>Set the <span>current drag operation</span> to the
+       operation <span
+       title="concept-dropzone-operation">specified</span> by the
+       <code title="attr-dropzone">dropzone</code> attribute of the
+       <span>current target element</span>.</p>
+
+
        <dt>Otherwise</dt>
 
        <dd><p>Reset the <span>current drag operation</span> to "<code
@@ -77300,12 +77321,34 @@
   </div>
 
 
-<!--
-XXX DND WIP plan:
- 5. add dropzone="..." feature
--->
+  <h4>The <dfn title="attr-dropzone"><code>dropzone</code></dfn> attribute</h4>
 
+  <p>All <span>HTML elements</span> may have the <code
+  title="attr-dropzone">dropzone</code> content attribute set. <span
+  class="XXX">unordered set of unique space-separated tokens</span>,
+  <span>ASCII case-insensitive</span></p>
 
+  <p class="XXX">A <code title="attr-dropzone">dropzone</code>
+  attribute <dfn title="concept-dropzone-match">matches a <span>drag
+  data store</span></dfn> if...</p>
+
+  <p class="XXX">A <code title="attr-dropzone">dropzone</code>
+  attribute <dfn title="concept-dropzone-operation">specifies an
+  operation</dfn> if... The specified operation is...</p>
+
+  <p>The <dfn title="dom-dropzone"><code>dropzone</code></dfn>
+  attribute must <span>reflect</span> the content attribute of the
+  same name.</p>
+
+  <!-- XXX dropzone add to:
+    HTMLElement IDL
+    Global Attributes list
+    List of focusable elements, with caveat
+    DND introduction
+    Attribute index
+  -->
+
+
 <!--
   <h4>Copy and paste</h4>
 




More information about the Commit-Watchers mailing list