[html5] r2446 - [iw] (2) Add DataTransfer.clearData() with no arguments. (credit: nd)

whatwg at whatwg.org whatwg at whatwg.org
Tue Nov 25 17:06:55 PST 2008


Author: ianh
Date: 2008-11-25 17:06:54 -0800 (Tue, 25 Nov 2008)
New Revision: 2446

Modified:
   index
   source
Log:
[iw] (2) Add DataTransfer.clearData() with no arguments. (credit: nd)

Modified: index
===================================================================
--- index	2008-11-26 00:36:45 UTC (rev 2445)
+++ index	2008-11-26 01:06:54 UTC (rev 2446)
@@ -40393,7 +40393,8 @@
            attribute DOMString <a href=#dom-datatransfer-dropeffect title=dom-DataTransfer-dropEffect>dropEffect</a>;
            attribute DOMString <a href=#dom-datatransfer-effectallowed title=dom-DataTransfer-effectAllowed>effectAllowed</a>;
   readonly attribute DOMStringList <a href=#dom-datatransfer-types title=dom-DataTransfer-types>types</a>;
-  void <a href=#dom-datatransfer-cleardata title=dom-DataTransfer-clearData>clearData</a>(in DOMString format);
+  void <a href=#dom-datatransfer-cleardata title=dom-DataTransfer-clearData>clearData</a>();
+  void <a href=#dom-datatransfer-cleardata-format title=dom-DataTransfer-clearData-format>clearData</a>(in DOMString format);
   void <a href=#dom-datatransfer-setdata title=dom-DataTransfer-setData>setData</a>(in DOMString format, in DOMString data);
   DOMString <a href=#dom-datatransfer-getdata title=dom-DataTransfer-getData>getData</a>(in DOMString format);
   void <a href=#dom-datatransfer-setdragimage title=dom-DataTransfer-setDragImage>setDragImage</a>(in Element image, in long x, in long y);
@@ -40438,7 +40439,11 @@
   associated with a unique format. Formats are generally given by MIME
   types, with some values special-cased for legacy reasons.</p>
 
-  <p>The <dfn id=dom-datatransfer-cleardata title=dom-DataTransfer-clearData><code>clearData(<var title="">format</var>)</code></dfn> method must clear the
+  <p>The <dfn id=dom-datatransfer-cleardata title=dom-DataTransfer-clearData><code>clearData()</code></dfn>
+  method, with no arguments, must clear the <code><a href=#datatransfer>DataTransfer</a></code>
+  object of al data (for all formats).</p>
+
+  <p>The <dfn id=dom-datatransfer-cleardata-format title=dom-DataTransfer-clearData-format><code>clearData(<var title="">format</var>)</code></dfn> method must clear the
   <code><a href=#datatransfer>DataTransfer</a></code> object of any data associated with the
   given <var title="">format</var>. If <var title="">format</var> is
   the value "<code title="">Text</code>", then it must be treated as

Modified: source
===================================================================
--- source	2008-11-26 00:36:45 UTC (rev 2445)
+++ source	2008-11-26 01:06:54 UTC (rev 2446)
@@ -45989,7 +45989,8 @@
            attribute DOMString <span title="dom-DataTransfer-dropEffect">dropEffect</span>;
            attribute DOMString <span title="dom-DataTransfer-effectAllowed">effectAllowed</span>;
   readonly attribute DOMStringList <span title="dom-DataTransfer-types">types</span>;
-  void <span title="dom-DataTransfer-clearData">clearData</span>(in DOMString format);
+  void <span title="dom-DataTransfer-clearData">clearData</span>();
+  void <span title="dom-DataTransfer-clearData-format">clearData</span>(in DOMString format);
   void <span title="dom-DataTransfer-setData">setData</span>(in DOMString format, in DOMString data);
   DOMString <span title="dom-DataTransfer-getData">getData</span>(in DOMString format);
   void <span title="dom-DataTransfer-setDragImage">setDragImage</span>(in Element image, in long x, in long y);
@@ -46049,7 +46050,13 @@
   associated with a unique format. Formats are generally given by MIME
   types, with some values special-cased for legacy reasons.</p>
 
-  <p>The <dfn title="dom-DataTransfer-clearData"><code>clearData(<var
+  <p>The <dfn
+  title="dom-DataTransfer-clearData"><code>clearData()</code></dfn>
+  method, with no arguments, must clear the <code>DataTransfer</code>
+  object of al data (for all formats).</p>
+
+  <p>The <dfn
+  title="dom-DataTransfer-clearData-format"><code>clearData(<var
   title="">format</var>)</code></dfn> method must clear the
   <code>DataTransfer</code> object of any data associated with the
   given <var title="">format</var>. If <var title="">format</var> is




More information about the Commit-Watchers mailing list