2Dapi; hixie: Fix all the bits that referred to img.complete and assumed it was not returning 'true' when src was missing (that changed recently). (whatwg r5282)

2Dapi; hixie: Fix all the bits that referred to img.complete and assumed
it was not returning 'true' when src was missing (that changed
recently). (whatwg r5282)

http://dev.w3.org/cvsweb/html5/2dcontext/Overview.html?r1=1.62&r2=1.63&f=h
http://html5.org/tools/web-apps-tracker?from=5281&to=5282

===================================================================
RCS file: /sources/public/html5/2dcontext/Overview.html,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- Overview.html 11 Aug 2010 20:26:43 -0000 1.62
+++ Overview.html 11 Aug 2010 20:32:48 -0000 1.63
@@ -1230,12 +1230,13 @@
   exception.</p> <!-- drawImage() has an equivalent paragraph -->
 
   <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, or
-  if the <var title="">image</var> argument is an
+  <code>HTMLImageElement</code> object whose <code title="dom-img-complete">complete</code> attribute is false or whose
+  <code title="attr-img-src">src</code> attribute is omitted or empty,
+  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 return null.</p>
-  <!-- drawImage() has an equivalent paragraph -->
+  implementation must return null.</p> <!-- drawImage() has an
+  equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
   <code>HTMLCanvasElement</code> object with either a horizontal
@@ -2654,12 +2655,13 @@
   exception.</p> <!-- createPattern() has an equivalent paragraph -->
 
   <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, or
-  if the <var title="">image</var> argument is an
+  <code>HTMLImageElement</code> object whose <code title="dom-img-complete">complete</code> attribute is false or whose
+  <code title="attr-img-src">src</code> attribute is omitted or empty,
+  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 return without drawing anything.</p>
-  <!-- createPattern() has an equivalent paragraph -->
+  implementation must return without drawing anything.</p> <!--
+  createPattern() has an equivalent paragraph -->
 
   <p>If the <var title="">image</var> argument is an
   <code>HTMLCanvasElement</code> object with either a horizontal

Received on Wednesday, 11 August 2010 20:33:28 UTC