HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
565810712[Gecko] [Internet Explorer] [Opera] [Webkit] dropzone 5/5, part 1: skeleton of dropzone='' section; update DND processing model; enumerate where sections that need updating.2010-10-29 23:39
@@ -76777,21 +76777,29 @@ interface <dfn>FunctionObjectCallback</dfn> {
          attribute is in the <span
          title="attr-input-type-text">Text</span> state) or an
          <span>editable</span> element, and the <span>drag data store
          item list</span> has an item with <span>the drag data item
          type string</span> "<code>text/plain</code>" and <span>the
          drag data item kind</span> <i>Plain Unicode string</i></dt>
 
          <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>
 
          <dd><p>Leave the <span>current target element</span>
          unchanged.</p></dd>
 
 
          <dt>Otherwise</dt>
 
@@ -76848,21 +76856,34 @@ interface <dfn>FunctionObjectCallback</dfn> {
        the <span title="attr-input-type-text">Text</span> state) or an
        <span>editable</span> element, and the <span>drag data store
        item list</span> has an item with <span>the drag data item type
        string</span> "<code>text/plain</code>" and <span>the drag data
        item kind</span> <i>Plain Unicode string</i></dt>
 
        <dd><p>Set the <span>current drag operation</span> to either
        "<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
        title="">none</code>".</p></dd>
 
       </dl>
 
       <p>Otherwise (if the <code
       title="event-dragover">dragover</code> event <em>is</em>
@@ -77293,24 +77314,46 @@ interface <dfn>FunctionObjectCallback</dfn> {
   title="attr-draggable">draggable</code> content attribute must be
   set to the literal value <code title="">false</code>. If the <code
   title="dom-draggable">draggable</code> IDL attribute is set to the
   value true, the <code title="attr-draggable">draggable</code>
   content attribute must be set to the literal value <code
   title="">true</code>.</p>
 
   </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>
 
   <p>Copy-and-paste is a form of drag-and-drop: the "copy" part is
   equivalent to dragging content to another application (the
   "clipboard"), and the "paste" part is equivalent to dragging content
   <em>from</em> another application.</p>
 

|