HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2002[Opera] Define processing for the second argument to getDataURL() for image/jpeg.2008-08-05 09:21
@@ -939,24 +939,21 @@
 
   <!-- XXX DOMB -->
   <p>Unless otherwise specified, if a method is passed fewer
   arguments than is defined for that method in its IDL definition,
   a <code title="big-issue">NOT_SUPPORTED_ERR</code> exception must be
   raised.</p>
 
   <!-- XXX DOMB -->
   <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(). -->
+  arguments must be ignored.</p>
   
 
 
 
   <h3>Case-sensitivity</h3>
 
   <p>This specification defines several comparison operators for
   strings.</p>
 
   <p>Comparing two strings in a <dfn>case-sensitive</dfn> manner means
@@ -17844,21 +17841,21 @@ interface <dfn>CueRangeCallback</dfn> {
    <dt>Element-specific attributes:</dt>
    <dd><code title="attr-canvas-width">width</code></dd>
    <dd><code title="attr-canvas-height">height</code></dd>
    <dt>DOM interface:</dt>
    <dd>
     <pre class="idl">interface <dfn>HTMLCanvasElement</dfn> : <span>HTMLElement</span> {
            attribute unsigned long <span title="dom-canvas-width">width</span>;
            attribute unsigned long <span title="dom-canvas-height">height</span>;
 
   DOMString <span title="dom-canvas-toDataURL">toDataURL</span>();
-  DOMString <span title="dom-canvas-toDataURL-type">toDataURL</span>(in DOMString type);
+  DOMString <span title="dom-canvas-toDataURL-type">toDataURL</span>(in DOMString type, [Variadic] in any args);
 
   DOMObject <span title="dom-canvas-getContext">getContext</span>(in DOMString contextId);
 };</pre>
    </dd>
   </dl>
 
   <p>The <code>canvas</code> element represents a resolution-dependent
   bitmap canvas, which can be used for rendering graphs, game
   graphics, or other visual images on the fly.</p>
 
@@ -18030,30 +18027,31 @@ interface <dfn>CueRangeCallback</dfn> {
   subsequent arguments, if any, must be treated as described in the
   second cell of that row.</p>
 
   <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.
+     must be 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 title="dom-canvas-toDataURL">toDataURL()</code> to allow
-  authors to more carefully control compression settings, image
-  metadata, etc.</p>
+  to raise an exception. A future version of this specification will
+  probably define other parameters to be passed to <code
+  title="dom-canvas-toDataURL">toDataURL()</code> to allow authors to
+  more carefully control compression settings, image metadata,
+  etc.</p>
 
 
   <h5>The 2D context</h5>
 
   <p>When the <code title="dom-canvas-getContext">getContext()</code>
   method of a <code>canvas</code> element is invoked with <dfn
   title="canvas-context-2d"><code>2d</code></dfn> as the argument, a
   <code>CanvasRenderingContext2D</code> object is returned.</p>
 
   <p>There is only one <code>CanvasRenderingContext2D</code> object

|