Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (0) dropzone 5/5, part 3: flesh out the UA requirements for dr…
…opzone=''.

git-svn-id: http://svn.whatwg.org/webapps@5660 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 1, 2010
1 parent cf6541a commit dda6a51
Show file tree
Hide file tree
Showing 3 changed files with 317 additions and 3 deletions.
101 changes: 100 additions & 1 deletion complete.html
Expand Up @@ -67847,7 +67847,106 @@ <h4 id=the-dropzone-attribute><span class=secno>8.7.8 </span>The <dfn title=attr

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

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

<p>For each value in <var title="">keywords</var>, if any, in the
order that they were found in <var title="">value</var>, run the
following steps.</p>

<ol><li><p>Let <var title="">keyword</var> be the keyword.</li>

<li>

<p>If <var title="">keyword</var> is one of "<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>", or "<code title=attr-dropzone-link><a href=#attr-dropzone-link>link</a></code>", then: run the following
substeps:</p>

<ol><li><p>If <var title="">operation</var> is still unspecified,
then let <var title="">operation</var> be the string given by
<var title="">keyword</var>.</li>

<li><p>Skip to the step labeled <i>end of keyword</i>
below.</li>

</ol></li>

<li><p>If <var title="">keyword</var> is shorter than three
characters in length, then skip to the step labeled <i>end of
keyword</i> below.</li>

<li><p>If the second character in <var title="">keyword</var> is
not a U+003A COLON character (:), then skip to the step labeled
<i>end of keyword</i> below.</li>

<li><p>Let <var title="">kind code</var> be the first character
in <var title="">keyword</var>, <a href=#converted-to-ascii-lowercase>converted to ASCII
lowercase</a>.</li>

<li>

<p>Jump to the appropriate step from the list below, based on
the value of <var title="">kind code</var>:</p>

<dl class=switch><dt>If <var title="">kind code</var> is a U+0073 LATIN SMALL LETTER S character</dt>
<dd>

<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
<i>Plain Unicode string</i>.</p>

</dd>

<!--DND-v3:
<dt>If <var title="">kind code</var> is a U+0062 LATIN SMALL LETTER B character</dt>
<dd>

<p>Let <var title="">kinds</var> be <i>Plain Unicode
string</i>, <i>Blob</i>, and <i>File</i>.</p>

</dd>
-->

<dt>If <var title="">kind code</var> is a U+0066 LATIN SMALL LETTER F character</dt>
<dd>

<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
<i>File</i>.</p>

</dd>

<!--DND-v4:
<dt>If <var title="">kind code</var> is a U+006F LATIN SMALL LETTER O character</dt>
<dd>

<p>Let <var title="">kinds</var> be <i>Plain Unicode
string</i>, <i>Blob</i>, <i>File</i>, and <i>Object</i>.</p>

</dd>
-->

<dt>Otherwise</dt>
<dd>

<p>Skip to the step labeled <i>end of keyword</i> below.</p>

</dd>

</dl></li>

<li><p>Let <var title="">type</var> be the string consisting of
all but the first two characters of <var title="">keyword</var>,
<a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>.</li>

<li><p>If there exist any items in the <a href=#drag-data-store-item-list>drag data store item
list</a> whose <a href=#the-drag-data-item-kind title="the drag data item kind">drag data
item kind</a> is <!--DND-v3:/DND-v4: one of--> the
kind<!--DND-v3:/DND-v4: s--> given in <var title="">kind<!--DND-v3:/DND-v4: s--></var> and whose <span title="the drag data item type">drag data item type</span> is
<var title="">type</var>, then let <var title="">matched</var> be
true.</li>

<li><p><i>End of keyword</i>: Go on to the next keyword, if any,
or the next step in the overall algorithm, if there are no
more.</li>

</ol></li>

<li>

Expand Down
101 changes: 100 additions & 1 deletion index
Expand Up @@ -67853,7 +67853,106 @@ interface <dfn>FunctionObjectCallback</dfn> {

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

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

<p>For each value in <var title="">keywords</var>, if any, in the
order that they were found in <var title="">value</var>, run the
following steps.</p>

<ol><li><p>Let <var title="">keyword</var> be the keyword.</li>

<li>

<p>If <var title="">keyword</var> is one of "<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>", or "<code title=attr-dropzone-link><a href=#attr-dropzone-link>link</a></code>", then: run the following
substeps:</p>

<ol><li><p>If <var title="">operation</var> is still unspecified,
then let <var title="">operation</var> be the string given by
<var title="">keyword</var>.</li>

<li><p>Skip to the step labeled <i>end of keyword</i>
below.</li>

</ol></li>

<li><p>If <var title="">keyword</var> is shorter than three
characters in length, then skip to the step labeled <i>end of
keyword</i> below.</li>

<li><p>If the second character in <var title="">keyword</var> is
not a U+003A COLON character (:), then skip to the step labeled
<i>end of keyword</i> below.</li>

<li><p>Let <var title="">kind code</var> be the first character
in <var title="">keyword</var>, <a href=#converted-to-ascii-lowercase>converted to ASCII
lowercase</a>.</li>

<li>

<p>Jump to the appropriate step from the list below, based on
the value of <var title="">kind code</var>:</p>

<dl class=switch><dt>If <var title="">kind code</var> is a U+0073 LATIN SMALL LETTER S character</dt>
<dd>

<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
<i>Plain Unicode string</i>.</p>

</dd>

<!--DND-v3:
<dt>If <var title="">kind code</var> is a U+0062 LATIN SMALL LETTER B character</dt>
<dd>

<p>Let <var title="">kinds</var> be <i>Plain Unicode
string</i>, <i>Blob</i>, and <i>File</i>.</p>

</dd>
-->

<dt>If <var title="">kind code</var> is a U+0066 LATIN SMALL LETTER F character</dt>
<dd>

<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
<i>File</i>.</p>

</dd>

<!--DND-v4:
<dt>If <var title="">kind code</var> is a U+006F LATIN SMALL LETTER O character</dt>
<dd>

<p>Let <var title="">kinds</var> be <i>Plain Unicode
string</i>, <i>Blob</i>, <i>File</i>, and <i>Object</i>.</p>

</dd>
-->

<dt>Otherwise</dt>
<dd>

<p>Skip to the step labeled <i>end of keyword</i> below.</p>

</dd>

</dl></li>

<li><p>Let <var title="">type</var> be the string consisting of
all but the first two characters of <var title="">keyword</var>,
<a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>.</li>

<li><p>If there exist any items in the <a href=#drag-data-store-item-list>drag data store item
list</a> whose <a href=#the-drag-data-item-kind title="the drag data item kind">drag data
item kind</a> is <!--DND-v3:/DND-v4: one of--> the
kind<!--DND-v3:/DND-v4: s--> given in <var title="">kind<!--DND-v3:/DND-v4: s--></var> and whose <span title="the drag data item type">drag data item type</span> is
<var title="">type</var>, then let <var title="">matched</var> be
true.</li>

<li><p><i>End of keyword</i>: Go on to the next keyword, if any,
or the next step in the overall algorithm, if there are no
more.</li>

</ol></li>

<li>

Expand Down
118 changes: 117 additions & 1 deletion source
Expand Up @@ -77447,7 +77447,123 @@ interface <dfn>FunctionObjectCallback</dfn> {

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

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

<p>For each value in <var title="">keywords</var>, if any, in the
order that they were found in <var title="">value</var>, run the
following steps.</p>

<ol>

<li><p>Let <var title="">keyword</var> be the keyword.</p></li>

<li>

<p>If <var title="">keyword</var> is one of "<code
title="attr-dropzone-copy">copy</code>", "<code
title="attr-dropzone-move">move</code>", or "<code
title="attr-dropzone-link">link</code>", then: run the following
substeps:</p>

<ol>

<li><p>If <var title="">operation</var> is still unspecified,
then let <var title="">operation</var> be the string given by
<var title="">keyword</var>.</p></li>

<li><p>Skip to the step labeled <i>end of keyword</i>
below.</p></li>

</ol>

</li>

<li><p>If <var title="">keyword</var> is shorter than three
characters in length, then skip to the step labeled <i>end of
keyword</i> below.</p></li>

<li><p>If the second character in <var title="">keyword</var> is
not a U+003A COLON character (:), then skip to the step labeled
<i>end of keyword</i> below.</p></li>

<li><p>Let <var title="">kind code</var> be the first character
in <var title="">keyword</var>, <span>converted to ASCII
lowercase</span>.</p></li>

<li>

<p>Jump to the appropriate step from the list below, based on
the value of <var title="">kind code</var>:</p>

<dl class="switch">

<dt>If <var title="">kind code</var> is a U+0073 LATIN SMALL LETTER S character</dt>
<dd>

<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
<i>Plain Unicode string</i>.</p>

</dd>

<!--DND-v3:
<dt>If <var title="">kind code</var> is a U+0062 LATIN SMALL LETTER B character</dt>
<dd>

<p>Let <var title="">kinds</var> be <i>Plain Unicode
string</i>, <i>Blob</i>, and <i>File</i>.</p>

</dd>
-->

<dt>If <var title="">kind code</var> is a U+0066 LATIN SMALL LETTER F character</dt>
<dd>

<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
<i>File</i>.</p>

</dd>

<!--DND-v4:
<dt>If <var title="">kind code</var> is a U+006F LATIN SMALL LETTER O character</dt>
<dd>

<p>Let <var title="">kinds</var> be <i>Plain Unicode
string</i>, <i>Blob</i>, <i>File</i>, and <i>Object</i>.</p>

</dd>
-->

<dt>Otherwise</dt>
<dd>

<p>Skip to the step labeled <i>end of keyword</i> below.</p>

</dd>

</dl>

</li>

<li><p>Let <var title="">type</var> be the string consisting of
all but the first two characters of <var title="">keyword</var>,
<span>converted to ASCII lowercase</span>.</p></li>

<li><p>If there exist any items in the <span>drag data store item
list</span> whose <span title="the drag data item kind">drag data
item kind</span> is <!--DND-v3:/DND-v4: one of--> the
kind<!--DND-v3:/DND-v4: s--> given in <var
title="">kind<!--DND-v3:/DND-v4: s--></var> and whose <span
title="the drag data item type">drag data item type</span> is
<var title="">type</var>, then let <var title="">matched</var> be
true.</p></li>

<li><p><i>End of keyword</i>: Go on to the next keyword, if any,
or the next step in the overall algorithm, if there are no
more.</li>

</ol>

</li>

<li>

Expand Down

0 comments on commit dda6a51

Please sign in to comment.