[html5] r804 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu May 10 15:09:42 PDT 2007


Author: ianh
Date: 2007-05-10 15:09:40 -0700 (Thu, 10 May 2007)
New Revision: 804

Modified:
   index
   source
Log:
[gow] (2) drawImage() must raise an exception if the image isn't ready

Modified: index
===================================================================
--- index	2007-05-10 06:24:18 UTC (rev 803)
+++ index	2007-05-10 22:09:40 UTC (rev 804)
@@ -12436,7 +12436,7 @@
    title=dom-img-complete><code>complete</code></dfn> must return true if the
    user agent has downloaded the image specified in the <code
    title=attr-img-src><a href="#src">src</a></code> attribute, and it is a
-   valid image.
+   valid image, and false otherwise.
 
   <h4 id=the-iframe><span class=secno>3.14.3. </span>The <dfn
    id=iframe><code>iframe</code></dfn> element</h4>
@@ -16467,7 +16467,10 @@
    <var title="">sh</var> arguments is outside the size of the image, or if
    one of the <var title="">dw</var> and <var title="">dh</var> arguments is
    negative, the implementation must raise an <code>INDEX_SIZE_ERR</code>
-   exception.
+   exception. If the <var title="">image</var> argument is an <code><a
+   href="#htmlimageelement">HTMLImageElement</a></code> object whose <code
+   title=dom-attr-complete>complete</code> attribute is false, then the
+   implementation must raise a <code>INVALID_STATE_ERR</code> exception.
 
   <p>When <code title=dom-context-2d-drawImage><a
    href="#drawimage">drawImage()</a></code> is invoked, the specified region

Modified: source
===================================================================
--- source	2007-05-10 06:24:18 UTC (rev 803)
+++ source	2007-05-10 22:09:40 UTC (rev 804)
@@ -10354,7 +10354,7 @@
   title="dom-img-complete"><code>complete</code></dfn> must return
   true if the user agent has downloaded the image specified in the
   <code title="attr-img-src">src</code> attribute, and it is a valid
-  image.</p>
+  image, and false otherwise.</p>
 
 
   <h4>The <dfn><code>iframe</code></dfn> element</h4>
@@ -14078,7 +14078,11 @@
   title="">sh</var> arguments is outside the size of the image, or if
   one of the <var title="">dw</var> and <var title="">dh</var>
   arguments is negative, the implementation must raise an
-  <code>INDEX_SIZE_ERR</code> exception.</p>
+  <code>INDEX_SIZE_ERR</code> exception. If the <var
+  title="">image</var> argument is an <code>HTMLImageElement</code>
+  object whose <code title="dom-attr-complete">complete</code>
+  attribute is false, then the implementation must raise a
+  <code>INVALID_STATE_ERR</code> exception.</p>
 
   <p>When <code title="dom-context-2d-drawImage">drawImage()</code> is
   invoked, the specified region of the image specified by the source




More information about the Commit-Watchers mailing list