- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 05 Aug 2008 09:22:33 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec In directory hutz:/tmp/cvs-serv24505 Modified Files: Overview.html Log Message: Define processing for the second argument to getDataURL() for image/jpeg. (whatwg r2002) Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1190 retrieving revision 1.1191 diff -u -d -r1.1190 -r1.1191 --- Overview.html 5 Aug 2008 09:16:52 -0000 1.1190 +++ Overview.html 5 Aug 2008 09:22:30 -0000 1.1191 @@ -2995,11 +2995,7 @@ <p>Unless otherwise specified, if a method is passed more arguments than is defined for that method in its IDL definition, the excess arguments must - be ignored.</p> - <!-- XXX When updating this spec for - Bindings-For-DOM-compliance, also remove or consider the equivalent - requirement in the canvas section for toDataURL() and - getContext(). --> + be ignored. <h3 id=case-sensitivity><span class=secno>2.3 </span>Case-sensitivity</h3> @@ -20678,7 +20674,7 @@ attribute unsigned long <a href="#height1" title=dom-canvas-height>height</a>; DOMString <a href="#todataurl" title=dom-canvas-toDataURL>toDataURL</a>(); - DOMString <a href="#todataurl0" title=dom-canvas-toDataURL-type>toDataURL</a>(in DOMString type); + DOMString <a href="#todataurl0" title=dom-canvas-toDataURL-type>toDataURL</a>(in DOMString type, [Variadic] in any args); DOMObject <a href="#getcontext" title=dom-canvas-getContext>getContext</a>(in DOMString contextId); };</pre> @@ -20868,13 +20864,14 @@ <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. + treated as the desired quality level. If it is no a number or is + outside that range, the user agent must use its default value, as if + the argument had been omitted. </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 + raise an exception. A future version of this specification will probably + define other 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.
Received on Tuesday, 5 August 2008 09:34:50 UTC