Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (0) dropzone 5/5, part 1: skeleton of dropzone='' section; upd…
…ate DND processing model; enumerate where sections that need updating.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10712

git-svn-id: http://svn.whatwg.org/webapps@5658 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 29, 2010
1 parent e1abf42 commit 4ededed
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 24 deletions.
58 changes: 49 additions & 9 deletions complete.html
Expand Up @@ -967,7 +967,8 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
<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>
Expand Down Expand Up @@ -65970,7 +65971,7 @@ <h4 id=the-drag-data-store><span class=secno>8.7.2 </span>The drag data store</h
<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>

Expand Down Expand Up @@ -67331,7 +67332,15 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-dr
<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>
Expand Down Expand Up @@ -67393,7 +67402,18 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-dr
"<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>

Expand Down Expand Up @@ -67719,10 +67739,30 @@ <h4 id=the-draggable-attribute><span class=secno>8.7.7 </span>The <dfn title=att
</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
-->


<!--
Expand Down Expand Up @@ -67808,7 +67848,7 @@ <h5>Paste from selection</h5>

<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
Expand Down
58 changes: 49 additions & 9 deletions index
Expand Up @@ -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>
Expand Down Expand Up @@ -65976,7 +65977,7 @@ interface <dfn id=navigatorabilities>NavigatorAbilities</dfn> {
<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>

Expand Down Expand Up @@ -67337,7 +67338,15 @@ interface <dfn>FunctionObjectCallback</dfn> {
<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>
Expand Down Expand Up @@ -67399,7 +67408,18 @@ interface <dfn>FunctionObjectCallback</dfn> {
"<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>

Expand Down Expand Up @@ -67725,10 +67745,30 @@ interface <dfn>FunctionObjectCallback</dfn> {
</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
-->


<!--
Expand Down Expand Up @@ -67814,7 +67854,7 @@ XXX DND WIP plan:

<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
Expand Down
55 changes: 49 additions & 6 deletions source
Expand Up @@ -76784,7 +76784,15 @@ interface <dfn>FunctionObjectCallback</dfn> {
<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>
Expand Down Expand Up @@ -76855,7 +76863,20 @@ interface <dfn>FunctionObjectCallback</dfn> {
"<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>

Expand Down Expand Up @@ -77300,10 +77321,32 @@ interface <dfn>FunctionObjectCallback</dfn> {
</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
-->


<!--
Expand Down

0 comments on commit 4ededed

Please sign in to comment.