[html5] r5282 - [giow] (2) Fix all the bits that referred to img.complete and assumed it was not [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Aug 11 13:32:39 PDT 2010
Author: ianh
Date: 2010-08-11 13:32:38 -0700 (Wed, 11 Aug 2010)
New Revision: 5282
Modified:
complete.html
index
source
Log:
[giow] (2) Fix all the bits that referred to img.complete and assumed it was not returning 'true' when src was missing (that changed recently).
Modified: complete.html
===================================================================
--- complete.html 2010-08-11 20:26:31 UTC (rev 5281)
+++ complete.html 2010-08-11 20:32:38 UTC (rev 5282)
@@ -20362,14 +20362,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>
@@ -30634,12 +30633,13 @@
exception.</p> <!-- drawImage() has an equivalent paragraph -->
<p>If the <var title="">image</var> argument is an
- <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, or
- if the <var title="">image</var> argument is an
+ <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false or whose
+ <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute is omitted or empty,
+ or if the <var title="">image</var> argument is an
<code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either
<code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></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><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
@@ -32129,12 +32129,13 @@
exception.</p> <!-- createPattern() has an equivalent paragraph -->
<p>If the <var title="">image</var> argument is an
- <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, or
- if the <var title="">image</var> argument is an
+ <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false or whose
+ <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute is omitted or empty,
+ or if the <var title="">image</var> argument is an
<code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either
<code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></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><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
@@ -47022,8 +47023,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,
@@ -47698,7 +47700,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>
@@ -47712,7 +47716,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>
@@ -47726,7 +47732,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>
@@ -47739,7 +47747,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>
Modified: index
===================================================================
--- index 2010-08-11 20:26:31 UTC (rev 5281)
+++ index 2010-08-11 20:32:38 UTC (rev 5282)
@@ -20286,14 +20286,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>
@@ -30561,12 +30560,13 @@
exception.</p> <!-- drawImage() has an equivalent paragraph -->
<p>If the <var title="">image</var> argument is an
- <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, or
- if the <var title="">image</var> argument is an
+ <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false or whose
+ <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute is omitted or empty,
+ or if the <var title="">image</var> argument is an
<code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either
<code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></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><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
@@ -32056,12 +32056,13 @@
exception.</p> <!-- createPattern() has an equivalent paragraph -->
<p>If the <var title="">image</var> argument is an
- <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false, or
- if the <var title="">image</var> argument is an
+ <code><a href=#htmlimageelement>HTMLImageElement</a></code> object whose <code title=dom-img-complete><a href=#dom-img-complete>complete</a></code> attribute is false or whose
+ <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute is omitted or empty,
+ or if the <var title="">image</var> argument is an
<code><a href=#htmlvideoelement>HTMLVideoElement</a></code> object whose <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is either
<code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code> or <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></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><a href=#htmlcanvaselement>HTMLCanvasElement</a></code> object with either a horizontal
@@ -46949,8 +46950,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,
@@ -47625,7 +47627,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>
@@ -47639,7 +47643,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>
@@ -47653,7 +47659,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>
@@ -47666,7 +47674,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>
Modified: source
===================================================================
--- source 2010-08-11 20:26:31 UTC (rev 5281)
+++ source 2010-08-11 20:32:38 UTC (rev 5282)
@@ -21677,15 +21677,15 @@
<p>The IDL attribute <dfn
title="dom-img-complete"><code>complete</code></dfn> must return
- true if the <code title="attr-img-src">src</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">src</code> attribute,
- and it is in a supported image type (i.e. it was decoded without
- fatal errors), even if the final <span
- title="concept-task">task</span> queued by the <span>networking task
- source</span> for the <span title="fetch">fetching</span> 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">src</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">src</code> attribute and it is in a supported
+ image type (i.e. it was decoded without fatal errors), even if the
+ final <span title="concept-task">task</span> queued by the
+ <span>networking task source</span> for the <span
+ title="fetch">fetching</span> 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">complete</code> can thus change while a
@@ -33612,14 +33612,15 @@
<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
+ 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
@@ -35381,14 +35382,15 @@
<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
+ 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
@@ -52736,8 +52738,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,
@@ -53412,7 +53415,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>
@@ -53426,7 +53431,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>
@@ -53440,7 +53447,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>
@@ -53453,7 +53462,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>
More information about the Commit-Watchers
mailing list