W3C home > Mailing lists > Public > public-html-commits@w3.org > December 2011

html5/spec Overview.html,1.5472,1.5473

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 14 Dec 2011 23:52:43 +0000
To: public-html-commits@w3.org
Message-Id: <E1Rayct-0006Jl-FI@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv24267

Modified Files:
	Overview.html 
Log Message:
Update the dropzone='' syntax to use string: and file: rather than s: and f:. No point being terse here. (whatwg r6873)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5472
retrieving revision 1.5473
diff -u -d -r1.5472 -r1.5473
--- Overview.html	14 Dec 2011 00:51:31 -0000	1.5472
+++ Overview.html	14 Dec 2011 23:52:39 -0000	1.5473
@@ -55119,10 +55119,10 @@
   }
 &lt;/script&gt;</pre><hr><p>To accept a drop, the drop target has to have a <code title="attr-dropzone"><a href="#the-dropzone-attribute">dropzone</a></code> attribute and listen to the
   <code title="drop-event">drop</code> event.<p>The value of the <code title="attr-dropzone"><a href="#the-dropzone-attribute">dropzone</a></code>
-  attribute specifies what kind of data to accept (e.g. "<code title="">s:text/plain</code>" to accept any text strings, or
-  "<code>f:image/png</code>" to accept a PNG image file) and what kind
-  of feedback to give (e.g. "<code>move</code>" to indicate that the
-  data will be moved).<p class="note">Instead of using the <code title="attr-dropzone"><a href="#the-dropzone-attribute">dropzone</a></code> attribute, a drop target can
+  attribute specifies what kind of data to accept (e.g. "<code title="">string:text/plain</code>" to accept any text strings, or
+  "<code>file:image/png</code>" to accept a PNG image file) and what
+  kind of feedback to give (e.g. "<code>move</code>" to indicate that
+  the data will be moved).<p class="note">Instead of using the <code title="attr-dropzone"><a href="#the-dropzone-attribute">dropzone</a></code> attribute, a drop target can
   handle the <code title="event-dragenter"><a href="#event-dragenter">dragenter</a></code> event (to
   report whether or not the drop target is to accept the drop) and the
   <code title="event-dragover"><a href="#event-dragover">dragover</a></code> event (to specify what
@@ -55131,7 +55131,7 @@
   <code title="dom-DataTransfer-DropEffect"><a href="#dom-datatransfer-dropeffect">dropEffect</a></code>
   attribute's value can be used by the source (otherwise it's
   reset).<p>For example:<pre>&lt;p&gt;Drop your favorite fruits below:&lt;/p&gt;
-&lt;ol dropzone="move s:text/x-example" ondrop="dropHandler(event)"&gt;
+&lt;ol dropzone="move string:text/x-example" ondrop="dropHandler(event)"&gt;
  &lt;-- don't forget to change the "text/x-example" type to something
  specific to your site --&gt;
 &lt;/ol&gt;
@@ -56819,10 +56819,8 @@
    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>Any keyword with eight characters or more, beginning with the
+   an <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the string "<code title="">string:</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
@@ -56831,10 +56829,8 @@
 
 
 
-   <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>Any keyword with six characters or more, beginning with an
+   <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the string "<code title="">file:</code>"<dt>
 
    </dt><dd><p>Indicates that items with <a href="#the-drag-data-item-kind">the drag data item
    kind</a> <i><a href="#file">File</a></i> and <a href="#the-drag-data-item-type-string">the drag data item type
@@ -56893,24 +56889,23 @@
 
       </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
+     <li><p>If <var title="">keyword</var> does not contain a U+003A
+     COLON character (:), or if the first such character in <var title="">keyword</var> is either the first character or the last
+     character in the string, 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>Let <var title="">kind code</var> be the substring
+     of <var title="">keyword</var> from the first character in the
+     string to the last character in the string that is before the
+     first U+003A COLON character (:) in the string, <a href="#converted-to-ascii-lowercase">converted
+     to ASCII lowercase</a>.</p>
 
      <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>
+      <dl class="switch"><dt>If <var title="">kind code</var> is the string "<code title="">string</code>"</dt>
        <dd>
 
         <p>Let <var title="">kind</var> be
@@ -56920,7 +56915,7 @@
 
 
 
-       <dt>If <var title="">kind code</var> is a U+0066 LATIN SMALL LETTER F character</dt>
+       <dt>If <var title="">kind code</var> is the string "<code title="">file</code>"</dt>
        <dd>
 
         <p>Let <var title="">kind</var> be
@@ -56939,9 +56934,10 @@
 
       </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>Let <var title="">type</var> be the substring of <var title="">keyword</var> from the first character after the first
+     U+003A COLON character (:) in the string, to the last character
+     in the string, <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
@@ -56976,7 +56972,7 @@
    target for image files using the <code title="attr-dropzone"><a href="#the-dropzone-attribute">dropzone</a></code> attribute. Images dropped
    into the target are then displayed.</p>
 
-   <pre>&lt;div dropzone="copy f:image/png f:image/gif f:image/jpeg" ondrop="receive(event, this)"&gt;
+   <pre>&lt;div dropzone="copy file:image/png file:image/gif file:image/jpeg" ondrop="receive(event, this)"&gt;
  &lt;p&gt;Drop an image here to have it displayed.&lt;/p&gt;
 &lt;/div&gt;
 &lt;script&gt;
Received on Wednesday, 14 December 2011 23:52:48 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 14 December 2011 23:52:52 GMT