[html5] r5660 - [giow] (0) dropzone 5/5, part 3: flesh out the UA requirements for dropzone=''.

whatwg at whatwg.org whatwg at whatwg.org
Mon Nov 1 14:05:23 PDT 2010


Author: ianh
Date: 2010-11-01 14:05:21 -0700 (Mon, 01 Nov 2010)
New Revision: 5660

Modified:
   complete.html
   index
   source
Log:
[giow] (0) dropzone 5/5, part 3: flesh out the UA requirements for dropzone=''.

Modified: complete.html
===================================================================
--- complete.html	2010-11-01 20:24:05 UTC (rev 5659)
+++ complete.html	2010-11-01 21:05:21 UTC (rev 5660)
@@ -67847,8 +67847,107 @@
 
    <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>
 
     <p>The algorithm results in a match if <var title="">matched</var>

Modified: index
===================================================================
--- index	2010-11-01 20:24:05 UTC (rev 5659)
+++ index	2010-11-01 21:05:21 UTC (rev 5660)
@@ -67853,8 +67853,107 @@
 
    <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>
 
     <p>The algorithm results in a match if <var title="">matched</var>

Modified: source
===================================================================
--- source	2010-11-01 20:24:05 UTC (rev 5659)
+++ source	2010-11-01 21:05:21 UTC (rev 5660)
@@ -77447,8 +77447,124 @@
 
    <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>
 
     <p>The algorithm results in a match if <var title="">matched</var>




More information about the Commit-Watchers mailing list