Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (0) dropzone 5/5, part 2: flesh out the authoring conformance …
…requirements, ready the skeleton for the UA requirements

git-svn-id: http://svn.whatwg.org/webapps@5659 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 1, 2010
1 parent 4ededed commit cf6541a
Show file tree
Hide file tree
Showing 3 changed files with 370 additions and 29 deletions.
127 changes: 117 additions & 10 deletions complete.html
Expand Up @@ -214,7 +214,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 29 October 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 1 November 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -67415,6 +67415,15 @@ <h4 id=drag-and-drop-processing-model><span class=secno>8.7.5 </span>Drag-and-dr
<a href=#current-target-element>current target element</a>.</p>


<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 does not <a href=#concept-dropzone-operation title=concept-dropzone-operation>specify an
operation</a></dt>

<dd><p>Set the <a href=#current-drag-operation>current drag operation</a> to "<code title="">copy</code>".</p>


<dt>Otherwise</dt>

<dd><p>Reset the <a href=#current-drag-operation>current drag operation</a> to "<code title="">none</code>".</dd>
Expand Down Expand Up @@ -67741,18 +67750,116 @@ <h4 id=the-draggable-attribute><span class=secno>8.7.7 </span>The <dfn title=att

<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>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. When
specified, its value must be an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique
space-separated tokens</a> that are <a href=#ascii-case-insensitive>ASCII
case-insensitive</a>. The allowed values are the following:</p>

<dl><dt><dfn id=attr-dropzone-copy title=attr-dropzone-copy><code>copy</code></dfn></dt>

<dd><p>Indicates that dropping an accepted item on the element will
result in a copy of the dragged data.</p>


<dt><dfn id=attr-dropzone-move title=attr-dropzone-move><code>move</code></dfn></dt>

<dd><p>Indicates that dropping an accepted item on the element will
result in the dragged data being moved to the new location.</p>


<dt><dfn id=attr-dropzone-link title=attr-dropzone-link><code>link</code></dfn></dt>

<dd><p>Indicates that dropping an accepted item on the element will
result in a link to the original data.</p>


<dt>Any keyword with three characters or more, beginning with the
two characters U+0073 LATIN SMALL LETTER S and U+003A COLON or
U+0053 LATIN CAPITAL LETTER S and U+003A COLON (i.e. an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code title="">s:</code>")<dt>

</dt><dd><p>Indicates that items with <a href=#the-drag-data-item-kind>the drag data item
kind</a> <i>Plain Unicode string</i> and <a href=#the-drag-data-item-type-string>the drag data
item type string</a> set to a value that matches the remainder
of the keyword are accepted.</dd>

<!--DND-v3:
<dt>Any keyword with three characters or more, beginning with the
two characters U+0062 LATIN SMALL LETTER B and U+003A COLON or
U+0042 LATIN CAPITAL LETTER B and U+003A COLON (i.e. an <span>ASCII
case-insensitive</span> match for the string "<code
title="">b:</code>")<dt>

<dd><p>Indicates that items with <span>the drag data item
kind</span> <i>Blob</i>, <i>File</i>, or <i>Plain Unicode
string</i> and <span>the drag data item type string</span> set to a
value that matches the remainder of the keyword are
accepted.</p></dd>
-->

<dt>Any keyword with three characters or more, beginning with the
two characters U+0066 LATIN SMALL LETTER F and U+003A COLON or
U+0046 LATIN CAPITAL LETTER F and U+003A COLON (i.e. an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code title="">f:</code>")<dt>

</dt><dd><p>Indicates that items with <a href=#the-drag-data-item-kind>the drag data item
kind</a> <i>File</i> and <a href=#the-drag-data-item-type-string>the drag data item type
string</a> set to a value that matches the remainder of the
keyword are accepted.</dd>

<!--DND-v4:
<dt>Any keyword with three characters or more, beginning with the
two characters U+006F LATIN SMALL LETTER O and U+003A COLON or
U+004F LATIN CAPITAL LETTER O and U+003A COLON (i.e. an <span>ASCII
case-insensitive</span> match for the string "<code
title="">o:</code>")<dt>

<dd><p>Indicates that items with <span>the drag data item type
string</span> set to a value that matches the remainder of the
keyword are accepted.</p></dd>
-->

</dl><p>The <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> content
attribute's values must not have more than one of the three feedback
values (<code title=attr-dropzone-copy><a href=#attr-dropzone-copy>copy</a></code>, <code title=attr-dropzone-move><a href=#attr-dropzone-move>move</a></code>, and <code title=attr-dropzone-link><a href=#attr-dropzone-link>link</a></code>) specified. If none are
specified, the <code title=attr-dropzone-copy><a href=#attr-dropzone-copy>copy</a></code> value is
implied.</p>

<p>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 drag data store</dfn> if
the <a href=#dropzone-processing-steps><code title=attr-dropzone>dropzone</code> processing
steps</a> result in a match.</p>

<p>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 <a href=#dropzone-processing-steps><code title=attr-dropzone>dropzone</code> processing
steps</a> result in a specified operation. The specified
operation is as given by those steps.</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>The <dfn id=dropzone-processing-steps><code title=attr-dropzone>dropzone</code> processing
steps</dfn> are as follows. They either result in a match or not,
and separate from this result either in a specified operation or
not, as defined below.</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>
<ol><li><p>Let <var title="">value</var> be the value of the <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute.</li>

<li><p>Let <var title="">keywords</var> be the result of <a href=#split-a-string-on-spaces title="split a string on spaces">splitting <var title="">value</var> on spaces</a>.</li>

<li><p>Let <var title="">matched</var> be false.</li>

<li><p>Let <var title="">operation</var> be unspecified.</li>

<li><p class=XXX>...</li>

<li>

<p>The algorithm results in a match if <var title="">matched</var>
is true, and does not otherwise.</p>

<p>The algorithm results in a specified operation if <var title="">operation</var> is not unspecified. The specified
operation, if one is specified, is the one given by <var title="">operation</var>.</p>

</li>

<p>The <dfn id=dom-dropzone title=dom-dropzone><code>dropzone</code></dfn>
</ol><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>

Expand Down
127 changes: 117 additions & 10 deletions index
Expand Up @@ -218,7 +218,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 29 October 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 1 November 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -67421,6 +67421,15 @@ interface <dfn>FunctionObjectCallback</dfn> {
<a href=#current-target-element>current target element</a>.</p>


<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 does not <a href=#concept-dropzone-operation title=concept-dropzone-operation>specify an
operation</a></dt>

<dd><p>Set the <a href=#current-drag-operation>current drag operation</a> to "<code title="">copy</code>".</p>


<dt>Otherwise</dt>

<dd><p>Reset the <a href=#current-drag-operation>current drag operation</a> to "<code title="">none</code>".</dd>
Expand Down Expand Up @@ -67747,18 +67756,116 @@ interface <dfn>FunctionObjectCallback</dfn> {

<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>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. When
specified, its value must be an <a href=#unordered-set-of-unique-space-separated-tokens>unordered set of unique
space-separated tokens</a> that are <a href=#ascii-case-insensitive>ASCII
case-insensitive</a>. The allowed values are the following:</p>

<dl><dt><dfn id=attr-dropzone-copy title=attr-dropzone-copy><code>copy</code></dfn></dt>

<dd><p>Indicates that dropping an accepted item on the element will
result in a copy of the dragged data.</p>


<dt><dfn id=attr-dropzone-move title=attr-dropzone-move><code>move</code></dfn></dt>

<dd><p>Indicates that dropping an accepted item on the element will
result in the dragged data being moved to the new location.</p>


<dt><dfn id=attr-dropzone-link title=attr-dropzone-link><code>link</code></dfn></dt>

<dd><p>Indicates that dropping an accepted item on the element will
result in a link to the original data.</p>


<dt>Any keyword with three characters or more, beginning with the
two characters U+0073 LATIN SMALL LETTER S and U+003A COLON or
U+0053 LATIN CAPITAL LETTER S and U+003A COLON (i.e. an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code title="">s:</code>")<dt>

</dt><dd><p>Indicates that items with <a href=#the-drag-data-item-kind>the drag data item
kind</a> <i>Plain Unicode string</i> and <a href=#the-drag-data-item-type-string>the drag data
item type string</a> set to a value that matches the remainder
of the keyword are accepted.</dd>

<!--DND-v3:
<dt>Any keyword with three characters or more, beginning with the
two characters U+0062 LATIN SMALL LETTER B and U+003A COLON or
U+0042 LATIN CAPITAL LETTER B and U+003A COLON (i.e. an <span>ASCII
case-insensitive</span> match for the string "<code
title="">b:</code>")<dt>

<dd><p>Indicates that items with <span>the drag data item
kind</span> <i>Blob</i>, <i>File</i>, or <i>Plain Unicode
string</i> and <span>the drag data item type string</span> set to a
value that matches the remainder of the keyword are
accepted.</p></dd>
-->

<dt>Any keyword with three characters or more, beginning with the
two characters U+0066 LATIN SMALL LETTER F and U+003A COLON or
U+0046 LATIN CAPITAL LETTER F and U+003A COLON (i.e. an <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> match for the string "<code title="">f:</code>")<dt>

</dt><dd><p>Indicates that items with <a href=#the-drag-data-item-kind>the drag data item
kind</a> <i>File</i> and <a href=#the-drag-data-item-type-string>the drag data item type
string</a> set to a value that matches the remainder of the
keyword are accepted.</dd>

<!--DND-v4:
<dt>Any keyword with three characters or more, beginning with the
two characters U+006F LATIN SMALL LETTER O and U+003A COLON or
U+004F LATIN CAPITAL LETTER O and U+003A COLON (i.e. an <span>ASCII
case-insensitive</span> match for the string "<code
title="">o:</code>")<dt>

<dd><p>Indicates that items with <span>the drag data item type
string</span> set to a value that matches the remainder of the
keyword are accepted.</p></dd>
-->

</dl><p>The <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> content
attribute's values must not have more than one of the three feedback
values (<code title=attr-dropzone-copy><a href=#attr-dropzone-copy>copy</a></code>, <code title=attr-dropzone-move><a href=#attr-dropzone-move>move</a></code>, and <code title=attr-dropzone-link><a href=#attr-dropzone-link>link</a></code>) specified. If none are
specified, the <code title=attr-dropzone-copy><a href=#attr-dropzone-copy>copy</a></code> value is
implied.</p>

<p>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 drag data store</dfn> if
the <a href=#dropzone-processing-steps><code title=attr-dropzone>dropzone</code> processing
steps</a> result in a match.</p>

<p>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 <a href=#dropzone-processing-steps><code title=attr-dropzone>dropzone</code> processing
steps</a> result in a specified operation. The specified
operation is as given by those steps.</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>The <dfn id=dropzone-processing-steps><code title=attr-dropzone>dropzone</code> processing
steps</dfn> are as follows. They either result in a match or not,
and separate from this result either in a specified operation or
not, as defined below.</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>
<ol><li><p>Let <var title="">value</var> be the value of the <code title=attr-dropzone><a href=#the-dropzone-attribute>dropzone</a></code> attribute.</li>

<li><p>Let <var title="">keywords</var> be the result of <a href=#split-a-string-on-spaces title="split a string on spaces">splitting <var title="">value</var> on spaces</a>.</li>

<li><p>Let <var title="">matched</var> be false.</li>

<li><p>Let <var title="">operation</var> be unspecified.</li>

<li><p class=XXX>...</li>

<li>

<p>The algorithm results in a match if <var title="">matched</var>
is true, and does not otherwise.</p>

<p>The algorithm results in a specified operation if <var title="">operation</var> is not unspecified. The specified
operation, if one is specified, is the one given by <var title="">operation</var>.</p>

</li>

<p>The <dfn id=dom-dropzone title=dom-dropzone><code>dropzone</code></dfn>
</ol><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>

Expand Down

0 comments on commit cf6541a

Please sign in to comment.