[html5] r6873 - [giow] (1) Update the dropzone='' syntax to use string: and file: rather than s: [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Dec 14 15:52:35 PST 2011
Author: ianh
Date: 2011-12-14 15:52:33 -0800 (Wed, 14 Dec 2011)
New Revision: 6873
Modified:
complete.html
index
source
Log:
[giow] (1) Update the dropzone='' syntax to use string: and file: rather than s: and f:. No point being terse here.
Affected topics: HTML
Modified: complete.html
===================================================================
--- complete.html 2011-12-14 00:51:27 UTC (rev 6872)
+++ complete.html 2011-12-14 23:52:33 UTC (rev 6873)
@@ -71571,10 +71571,10 @@
<code title=drop-event>drop</code> event.</p>
<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>
+ 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>
<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
@@ -71591,7 +71591,7 @@
<p>For example:</p>
<pre><p>Drop your favorite fruits below:</p>
-<ol dropzone="move s:text/x-example" ondrop="dropHandler(event)">
+<ol dropzone="move string:text/x-example" ondrop="dropHandler(event)">
<-- don't forget to change the "text/x-example" type to something
specific to your site -->
</ol>
@@ -73529,10 +73529,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
@@ -73540,11 +73538,9 @@
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>
+ <dt>Any keyword with six characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">blob:</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
@@ -73553,10 +73549,8 @@
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>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
@@ -73564,11 +73558,9 @@
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>
+ <dt>Any keyword with eight characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">object:</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
@@ -73627,24 +73619,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 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>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>
+ <dl class=switch><dt>If <var title="">kind code</var> is the string "<code title="">string</code>"</dt>
<dd>
<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
@@ -73653,7 +73644,7 @@
</dd>
<!--DND-v3:
- <dt>If <var title="">kind code</var> is a U+0062 LATIN SMALL LETTER B character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">blob</code>"</dt>
<dd>
<p>Let <var title="">kinds</var> be <i>Plain Unicode
@@ -73662,7 +73653,7 @@
</dd>
-->
- <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<!--DND-v3:/DND-v4: s--></var> be
@@ -73671,7 +73662,7 @@
</dd>
<!--DND-v4:
- <dt>If <var title="">kind code</var> is a U+006F LATIN SMALL LETTER O character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">object</code>"</dt>
<dd>
<p>Let <var title="">kinds</var> be <i>Plain Unicode
@@ -73689,9 +73680,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
@@ -73728,7 +73720,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><div dropzone="copy f:image/png f:image/gif f:image/jpeg" ondrop="receive(event, this)">
+ <pre><div dropzone="copy file:image/png file:image/gif file:image/jpeg" ondrop="receive(event, this)">
<p>Drop an image here to have it displayed.</p>
</div>
<script>
Modified: index
===================================================================
--- index 2011-12-14 00:51:27 UTC (rev 6872)
+++ index 2011-12-14 23:52:33 UTC (rev 6873)
@@ -71571,10 +71571,10 @@
<code title=drop-event>drop</code> event.</p>
<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>
+ 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>
<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
@@ -71591,7 +71591,7 @@
<p>For example:</p>
<pre><p>Drop your favorite fruits below:</p>
-<ol dropzone="move s:text/x-example" ondrop="dropHandler(event)">
+<ol dropzone="move string:text/x-example" ondrop="dropHandler(event)">
<-- don't forget to change the "text/x-example" type to something
specific to your site -->
</ol>
@@ -73529,10 +73529,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
@@ -73540,11 +73538,9 @@
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>
+ <dt>Any keyword with six characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">blob:</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
@@ -73553,10 +73549,8 @@
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>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
@@ -73564,11 +73558,9 @@
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>
+ <dt>Any keyword with eight characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">object:</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
@@ -73627,24 +73619,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 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>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>
+ <dl class=switch><dt>If <var title="">kind code</var> is the string "<code title="">string</code>"</dt>
<dd>
<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
@@ -73653,7 +73644,7 @@
</dd>
<!--DND-v3:
- <dt>If <var title="">kind code</var> is a U+0062 LATIN SMALL LETTER B character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">blob</code>"</dt>
<dd>
<p>Let <var title="">kinds</var> be <i>Plain Unicode
@@ -73662,7 +73653,7 @@
</dd>
-->
- <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<!--DND-v3:/DND-v4: s--></var> be
@@ -73671,7 +73662,7 @@
</dd>
<!--DND-v4:
- <dt>If <var title="">kind code</var> is a U+006F LATIN SMALL LETTER O character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">object</code>"</dt>
<dd>
<p>Let <var title="">kinds</var> be <i>Plain Unicode
@@ -73689,9 +73680,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
@@ -73728,7 +73720,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><div dropzone="copy f:image/png f:image/gif f:image/jpeg" ondrop="receive(event, this)">
+ <pre><div dropzone="copy file:image/png file:image/gif file:image/jpeg" ondrop="receive(event, this)">
<p>Drop an image here to have it displayed.</p>
</div>
<script>
Modified: source
===================================================================
--- source 2011-12-14 00:51:27 UTC (rev 6872)
+++ source 2011-12-14 23:52:33 UTC (rev 6873)
@@ -83649,10 +83649,10 @@
<p>The value of the <code title="attr-dropzone">dropzone</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>
+ 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>
<p class="note">Instead of using the <code
title="attr-dropzone">dropzone</code> attribute, a drop target can
@@ -83670,7 +83670,7 @@
<p>For example:</p>
<pre><p>Drop your favorite fruits below:</p>
-<ol dropzone="move s:text/x-example" ondrop="dropHandler(event)">
+<ol dropzone="move string:text/x-example" ondrop="dropHandler(event)">
<-- don't forget to change the "text/x-example" type to something
specific to your site -->
</ol>
@@ -86033,11 +86033,9 @@
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 <span>ASCII
- case-insensitive</span> match for the string "<code
- title="">s:</code>")<dt>
+ <dt>Any keyword with eight characters or more, beginning with the
+ an <span>ASCII case-insensitive</span> match for the string "<code
+ title="">string:</code>"<dt>
<dd><p>Indicates that items with <span>the drag data item
kind</span> <i>Plain Unicode string</i> and <span>the drag data
@@ -86045,11 +86043,9 @@
of the keyword are accepted.</p></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>
+ <dt>Any keyword with six characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">blob:</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
@@ -86058,11 +86054,9 @@
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 <span>ASCII
- case-insensitive</span> match for the string "<code
- title="">f:</code>")<dt>
+ <dt>Any keyword with six characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">file:</code>"<dt>
<dd><p>Indicates that items with <span>the drag data item
kind</span> <i>File</i> and <span>the drag data item type
@@ -86070,11 +86064,9 @@
keyword are accepted.</p></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>
+ <dt>Any keyword with eight characters or more, beginning with an
+ <span>ASCII case-insensitive</span> match for the string "<code
+ title="">object:</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
@@ -86153,18 +86145,18 @@
</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.</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 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, <span>converted
+ to ASCII lowercase</span>.</p>
- <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
@@ -86172,7 +86164,7 @@
<dl class="switch">
- <dt>If <var title="">kind code</var> is a U+0073 LATIN SMALL LETTER S character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">string</code>"</dt>
<dd>
<p>Let <var title="">kind<!--DND-v3:/DND-v4: s--></var> be
@@ -86181,7 +86173,7 @@
</dd>
<!--DND-v3:
- <dt>If <var title="">kind code</var> is a U+0062 LATIN SMALL LETTER B character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">blob</code>"</dt>
<dd>
<p>Let <var title="">kinds</var> be <i>Plain Unicode
@@ -86190,7 +86182,7 @@
</dd>
-->
- <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<!--DND-v3:/DND-v4: s--></var> be
@@ -86199,7 +86191,7 @@
</dd>
<!--DND-v4:
- <dt>If <var title="">kind code</var> is a U+006F LATIN SMALL LETTER O character</dt>
+ <dt>If <var title="">kind code</var> is the string "<code title="">object</code>"</dt>
<dd>
<p>Let <var title="">kinds</var> be <i>Plain Unicode
@@ -86219,9 +86211,11 @@
</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>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, <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
@@ -86267,7 +86261,7 @@
title="attr-dropzone">dropzone</code> attribute. Images dropped
into the target are then displayed.</p>
- <pre><div dropzone="copy f:image/png f:image/gif f:image/jpeg" ondrop="receive(event, this)">
+ <pre><div dropzone="copy file:image/png file:image/gif file:image/jpeg" ondrop="receive(event, this)">
<p>Drop an image here to have it displayed.</p>
</div>
<script>
More information about the Commit-Watchers
mailing list