HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/3685

File a bug

SVNBugCommentTime (UTC)
3685[Gecko] [Opera] [Webkit] drawImage() and createPattern() no longer throw an exception if the image isn't ready.2009-08-28 01:03
Index: source
===================================================================
--- source	(revision 3684)
+++ source	(revision 3685)
@@ -26565,18 +26565,13 @@
 
   <p>If the <var title="">image</var> argument is an
   <code>HTMLImageElement</code> object whose <code
-  title="dom-img-complete">complete</code> attribute is false, then
-  the implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
-  <!-- drawImage() has an equivalent paragraph -->
-
-  <p>If the <var title="">image</var> argument is an
+  title="dom-img-complete">complete</code> attribute is false, or
+  if the <var title="">image</var> argument is an
   <code>HTMLVideoElement</code> object whose <code
   title="dom-media-readyState">readyState</code> attribute is either
   <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code> or <code
   title="dom-media-HAVE_METADATA">HAVE_METADATA</code>, then the
-  implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
+  implementation must return null.</p>
   <!-- drawImage() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
@@ -28161,27 +28156,13 @@
 
   <p>If the <var title="">image</var> argument is an
   <code>HTMLImageElement</code> object whose <code
-  title="dom-img-complete">complete</code> attribute is false, then
-  the implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
-  <!-- createPattern() has an equivalent paragraph -->
-
-  <!-- handled by a later paragraph
-  <p>If the <var title="">image</var> argument is an
-  <code>HTMLCanvasElement</code> object with either a horizontal
-  dimension or a vertical dimension equal to zero, then the
-  implementation must raise an <code>INVALID_SIZE_ERR</code>
-  exception.</p>
-  -->
-  <!-- createPattern() has an equivalent paragraph -->
-
-  <p>If the <var title="">image</var> argument is an
+  title="dom-img-complete">complete</code> attribute is false, or
+  if the <var title="">image</var> argument is an
   <code>HTMLVideoElement</code> object whose <code
   title="dom-media-readyState">readyState</code> attribute is either
   <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code> or <code
   title="dom-media-HAVE_METADATA">HAVE_METADATA</code>, then the
-  implementation must raise an <code>INVALID_STATE_ERR</code>
-  exception.</p>
+  implementation must return without drawing anything.</p>
   <!-- createPattern() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an

|