html5/spec Overview.html,1.960,1.961

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv2602

Modified Files:
	Overview.html 
Log Message:
toDataURL() arguments for image/jpeg. (Re: <canvas> JPEG quality) (whatwg r1771)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.960
retrieving revision 1.961
diff -u -d -r1.960 -r1.961
--- Overview.html	13 Jun 2008 08:50:00 -0000	1.960
+++ Overview.html	13 Jun 2008 08:59:44 -0000	1.961
@@ -18396,13 +18396,34 @@
    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
-   occur if a method was called with the wrong number of arguments). A future
-   version of this specification will probably allow extra parameters to be
-   passed to <code title=dom-canvas-toDataURL><a
-   href="#todataurl">toDataURL()</a></code> to allow authors to more
-   carefully control compression settings, image metadata, etc.
+  <p>If the method is invoked with the first argument giving a type
+   corresponding to one of the types given in the first column of the
+   following table, and the user agent supports that type, then the
+   subsequent arguments, if any, must be treated as described in the second
+   cell of that row.
+
+  <table>
+   <thead>
+    <tr>
+     <th> Type
+
+     <th> Other arguments
+
+   <tbody>
+    <tr>
+     <td> image/jpeg
+
+     <td> The second argument, if it is a number between 0.0 and 1.0, must be
+      treated as the desired quality level.
+  </table>
+
+  <p>Other arguments must be ignored and must not cause the user agent to
+   raise an exception (as would normally occur if a method was called with
+   the wrong number of arguments). A future version of this specification
+   will probably allow extra parameters to be passed to <code
+   title=dom-canvas-toDataURL><a href="#todataurl">toDataURL()</a></code> to
+   allow authors to more carefully control compression settings, image
+   metadata, etc.
 
   <h5 id=the-2d><span class=secno>3.11.11.1. </span>The 2D context</h5>
 

Received on Friday, 13 June 2008 09:00:20 UTC