- From: poot <cvsmail@w3.org>
- Date: Tue, 5 Aug 2008 18:36:56 +0900 (JST)
- To: public-html-diffs@w3.org
Define processing for the second argument to getDataURL() for
image/jpeg. (whatwg r2002)
HTMLCanvasElement
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1191.html#htmlcanvaselement
toDataURL(type)
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1191.html#todataurl0
2.3 Case-sensitivity
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1191.html#case-sensitivity
2.2.3 Common conformance requirements for APIs exposed to JavaScript
http://people.w3.org/mike/diffs/html5/spec/Overview.1.1191.html#common
http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1190&r2=1.1191&f=h
http://html5.org/tools/web-apps-tracker?from=2001&to=2002
===================================================================
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:37:33 UTC