html5/spec Overview.html,1.4207,1.4208

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv30751

Modified Files:
	Overview.html 
Log Message:
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)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4207
retrieving revision 1.4208
diff -u -d -r1.4207 -r1.4208
--- Overview.html	11 Aug 2010 20:26:37 -0000	1.4207
+++ Overview.html	11 Aug 2010 20:32:42 -0000	1.4208
@@ -17460,14 +17460,13 @@
   else 0. <a href="#refsCSS">[CSS]</a></p>
 
   <p>The IDL attribute <dfn id="dom-img-complete" title="dom-img-complete"><code>complete</code></dfn> must return
-  true if the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute's value
-  is the empty string or if the user agent has fetched the image
-  specified in the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute,
-  and it is in a supported image type (i.e. it was decoded without
-  fatal errors), even if the final <a href="#concept-task" title="concept-task">task</a> queued by the <a href="#networking-task-source">networking task
-  source</a> for the <a href="#fetch" title="fetch">fetching</a> of the
-  image resource has not yet been processed. Otherwise, the attribute
-  must return false.</p>
+  true if either the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute
+  is omitted, or its value is the empty string, or if the user agent
+  has fetched the image specified in the <code title="attr-img-src"><a href="#attr-img-src">src</a></code> attribute and it is in a supported
+  image type (i.e. it was decoded without fatal errors), even if the
+  final <a href="#concept-task" title="concept-task">task</a> queued by the
+  <a href="#networking-task-source">networking task source</a> for the <a href="#fetch" title="fetch">fetching</a> of the image resource has not yet been
+  processed. Otherwise, the attribute must return false.</p>
 
   <p class="note">The value of <code title="dom-img-complete"><a href="#dom-img-complete">complete</a></code> can thus change while a
   <a href="#concept-script" title="concept-script">script</a> is executing.</p>
@@ -35913,8 +35912,9 @@
 
    <li><p>If the <var title="">icon</var> argument is present and not
    null, but the given <code>img</code> element's <code
-   title="dom-img-complete">complete</code> attribute is false, then
-   let <var title="">icon</var> be null.</p></li>
+   title="dom-img-complete">complete</code> attribute is false or its
+   <code title="attr-img-src">src</code> attribute is omitted or
+   empty, then let <var title="">icon</var> be null.</p></li>
 
    <li><p>If the <var title="">icon</var> argument is present and not
    null, then copy the image data from that <code>img</code> element,
@@ -36589,7 +36589,9 @@
       an <code>img</code> element.</p>
 
       <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true.</p>
+      title="dom-img-complete">complete</code> attribute is true and
+      its <code title="attr-img-src">src</code> attribute is neither
+      omitted nor empty.</p>
 
      </dd>
 
@@ -36603,7 +36605,9 @@
       <code>img</code> element.</p>
 
       <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true.</p>
+      title="dom-img-complete">complete</code> attribute is true and
+      its <code title="attr-img-src">src</code> attribute is neither
+      omitted nor empty.</p>
 
      </dd>
 
@@ -36617,7 +36621,9 @@
       <code>img</code> element.</p>
 
       <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true.</p>
+      title="dom-img-complete">complete</code> attribute is true and
+      its <code title="attr-img-src">src</code> attribute is neither
+      omitted nor empty.</p>
 
      </dd>
 
@@ -36630,7 +36636,9 @@
       <code>img</code> element.</p>
 
       <p>If there is an <code>img</code> element specified, its <code
-      title="dom-img-complete">complete</code> attribute is true.</p>
+      title="dom-img-complete">complete</code> attribute is true and
+      its <code title="attr-img-src">src</code> attribute is neither
+      omitted nor empty.</p>
 
      </dd>
 

Received on Wednesday, 11 August 2010 20:32:48 UTC