[html5] r1208 - /

whatwg at whatwg.org whatwg at whatwg.org
Sun Feb 10 01:09:36 PST 2008


Author: ianh
Date: 2008-02-10 01:09:35 -0800 (Sun, 10 Feb 2008)
New Revision: 1208

Modified:
   index
   source
Log:
[e] (0) clarify the note on toDataURL()

Modified: index
===================================================================
--- index	2008-02-10 01:21:46 UTC (rev 1207)
+++ index	2008-02-10 09:09:35 UTC (rev 1208)
@@ -16140,7 +16140,9 @@
    by checking to see if the returned string starts with one the exact
    strings "<code title="">data:image/png,</code>" or "<code
    title="">data:image/png;</code>". If it does, the image is PNG, and thus
-   the requested type was not supported.
+   the requested type was not supported. (The one exception to this is if the
+   canvas has either no height or no width, in which case the result might
+   simply be "<code title="">data:,</code>".)
 
   <p>Arguments other than the <var title="">type</var> must be ignored, and
    must not cause the user agent to raise an exception (as would normally

Modified: source
===================================================================
--- source	2008-02-10 01:21:46 UTC (rev 1207)
+++ source	2008-02-10 09:09:35 UTC (rev 1208)
@@ -13690,7 +13690,9 @@
   string starts with one the exact strings "<code
   title="">data:image/png,</code>" or "<code
   title="">data:image/png;</code>". If it does, the image is PNG, and
-  thus the requested type was not supported.</p>
+  thus the requested type was not supported. (The one exception to
+  this is if the canvas has either no height or no width, in which
+  case the result might simply be "<code title="">data:,</code>".)</p>
 
   <p>Arguments other than the <var title="">type</var> must be
   ignored, and must not cause the user agent to raise an exception (as




More information about the Commit-Watchers mailing list