- From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 13 Jun 2008 01:58:25 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv29191
Modified Files:
Overview.html
Log Message:
Make the spec more consistent about Infinity and NaN values throwing NOT_SUPPORTED_ERR. (whatwg r1760)
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.949
retrieving revision 1.950
diff -u -d -r1.949 -r1.950
--- Overview.html 13 Jun 2008 01:50:02 -0000 1.949
+++ Overview.html 13 Jun 2008 01:58:22 -0000 1.950
@@ -18954,7 +18954,7 @@
gradient. If any of the arguments to <code
title=dom-context-2d-createLinearGradient><a
href="#createlineargradient">createLinearGradient()</a></code> are
- infinite or NaN, the method must raise an <code>INDEX_SIZE_ERR</code>
+ infinite or NaN, the method must raise a <code>NOT_SUPPORTED_ERR</code>
exception. Otherwise, the method must return a linear <code><a
href="#canvasgradient">CanvasGradient</a></code> initialized with the
specified line.
@@ -18983,10 +18983,11 @@
<var title="">y0</var>) and radius <var title="">r0</var>, and the last
three representing the end circle with origin (<var title="">x1</var>,
<var title="">y1</var>) and radius <var title="">r1</var>. The values are
- in coordinate space units. If either of <var title="">r0</var> or <var
- title="">r1</var> are negative, or if any of the arguments are infinite or
- NaN, an <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise,
- the method must return a radial <code><a
+ in coordinate space units. If any of the arguments are infinite or NaN, a
+ <code>NOT_SUPPORTED_ERR</code> exception must be raised. If either of <var
+ title="">r0</var> or <var title="">r1</var> are negative, an
+ <code>INDEX_SIZE_ERR</code> exception must be raised. Otherwise, the
+ method must return a radial <code><a
href="#canvasgradient">CanvasGradient</a></code> initialized with the two
specified circles, after transforming them according to the <a
href="#transformations0" title=dom-context-2d-transformation>current
@@ -20318,7 +20319,8 @@
<p>If any of the arguments to <code title=dom-context-2d-createImageData><a
href="#createimagedata">createImageData()</a></code> or <code
title=dom-context-2d-getImageData><a
- href="#getimagedata">getImageData()</a></code> are infinite or NaN, or if
+ href="#getimagedata">getImageData()</a></code> are infinite or NaN, the
+ method must instead raise a <code>NOT_SUPPORTED_ERR</code> exception. If
either the <var title="">sw</var> or <var title="">sh</var> arguments are
zero, the method must instead raise an <code>INDEX_SIZE_ERR</code>
exception.
@@ -20382,15 +20384,15 @@
method writes data from <code><a href="#imagedata">ImageData</a></code>
structures back to the canvas.
+ <p>If any of the arguments to the method are infinite or NaN, the method
+ must raise an <code>NOT_SUPPORTED_ERR</code> exception.
+
<p>If the first argument to the method is null or not an <code><a
href="#imagedata">ImageData</a></code> object then the <code
title=dom-context-2d-putImageData><a
href="#putimagedata">putImageData()</a></code> method must raise a
<code>TYPE_MISMATCH_ERR</code> exception.
- <p>If any of the arguments to the method are infinite or NaN, the method
- must raise an <code>INDEX_SIZE_ERR</code> exception.
-
<p>When the last four arguments are omitted, they must be assumed to have
the values 0, 0, the <code title=dom-imagedata-width><a
href="#width3">width</a></code> member of the <var
Received on Friday, 13 June 2008 01:58:58 UTC