[html5] r6731 - [giow] (2) Fix a race condition between setting src and firing onload for <img>.
whatwg at whatwg.org
whatwg at whatwg.org
Mon Oct 24 10:11:53 PDT 2011
Author: ianh
Date: 2011-10-24 10:11:51 -0700 (Mon, 24 Oct 2011)
New Revision: 6731
Modified:
complete.html
index
source
Log:
[giow] (2) Fix a race condition between setting src and firing onload for <img>.
Modified: complete.html
===================================================================
--- complete.html 2011-10-21 22:46:01 UTC (rev 6730)
+++ complete.html 2011-10-24 17:11:51 UTC (rev 6731)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 21 October 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 24 October 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -22443,15 +22443,17 @@
<dl class=switch><dt>If the download was successful</dt>
<dd>Set the <code><a href=#the-img-element>img</a></code> element to the <a href=#img-all title=img-all>completely available</a> state, update the
- presentation of the image appropriately, and <a href=#queue-a-task>queue a
- task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-load>load</code> at the <code><a href=#the-img-element>img</a></code>
- element.</dd>
+ presentation of the image appropriately, and <a href=#fire-a-simple-event>fire a simple
+ event</a> named <code title=event-load>load</code> at the
+ <code><a href=#the-img-element>img</a></code> element.</dd>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1222 -->
+
<dt>Otherwise</dt>
- <dd>Set the <code><a href=#the-img-element>img</a></code> element to the <a href=#img-error title=img-error>broken</a> state, and <a href=#queue-a-task>queue a
- task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error>error</code> at the <code><a href=#the-img-element>img</a></code>
- element.</dd>
+ <dd>Set the <code><a href=#the-img-element>img</a></code> element to the <a href=#img-error title=img-error>broken</a> state, and <a href=#fire-a-simple-event>fire a simple
+ event</a> named <code title=event-error>error</code> at the
+ <code><a href=#the-img-element>img</a></code> element.</dd>
</dl><p>On the other hand, if the resource type is
<code><a href=#multipart/x-mixed-replace>multipart/x-mixed-replace</a></code>, then each <a href=#concept-task title=concept-task>task</a> that is <a href=#queue-a-task title="queue a
@@ -22509,8 +22511,9 @@
<p>This specification does not specify which image types are to be
supported.</p>
- <p>The <a href=#task-source>task source</a> for these <a href=#concept-task title=concept-task>tasks</a> is the <a href=#dom-manipulation-task-source>DOM manipulation
- task source</a>.</p>
+ <p>The <a href=#task-source>task source</a> for the <a href=#concept-task title=concept-task>tasks</a> <a href=#queue-a-task title="queue a
+ task">queued</a> by algorithms in this section is the <a href=#dom-manipulation-task-source>DOM
+ manipulation task source</a>.</p>
<hr><p>What an <code><a href=#the-img-element>img</a></code> element represents depends on the <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute and the <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute.</p>
Modified: index
===================================================================
--- index 2011-10-21 22:46:01 UTC (rev 6730)
+++ index 2011-10-24 17:11:51 UTC (rev 6731)
@@ -240,7 +240,7 @@
<header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
- <h2 class="no-num no-toc">Living Standard — Last Updated 21 October 2011</h2>
+ <h2 class="no-num no-toc">Living Standard — Last Updated 24 October 2011</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
@@ -22443,15 +22443,17 @@
<dl class=switch><dt>If the download was successful</dt>
<dd>Set the <code><a href=#the-img-element>img</a></code> element to the <a href=#img-all title=img-all>completely available</a> state, update the
- presentation of the image appropriately, and <a href=#queue-a-task>queue a
- task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-load>load</code> at the <code><a href=#the-img-element>img</a></code>
- element.</dd>
+ presentation of the image appropriately, and <a href=#fire-a-simple-event>fire a simple
+ event</a> named <code title=event-load>load</code> at the
+ <code><a href=#the-img-element>img</a></code> element.</dd>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1222 -->
+
<dt>Otherwise</dt>
- <dd>Set the <code><a href=#the-img-element>img</a></code> element to the <a href=#img-error title=img-error>broken</a> state, and <a href=#queue-a-task>queue a
- task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-error>error</code> at the <code><a href=#the-img-element>img</a></code>
- element.</dd>
+ <dd>Set the <code><a href=#the-img-element>img</a></code> element to the <a href=#img-error title=img-error>broken</a> state, and <a href=#fire-a-simple-event>fire a simple
+ event</a> named <code title=event-error>error</code> at the
+ <code><a href=#the-img-element>img</a></code> element.</dd>
</dl><p>On the other hand, if the resource type is
<code><a href=#multipart/x-mixed-replace>multipart/x-mixed-replace</a></code>, then each <a href=#concept-task title=concept-task>task</a> that is <a href=#queue-a-task title="queue a
@@ -22509,8 +22511,9 @@
<p>This specification does not specify which image types are to be
supported.</p>
- <p>The <a href=#task-source>task source</a> for these <a href=#concept-task title=concept-task>tasks</a> is the <a href=#dom-manipulation-task-source>DOM manipulation
- task source</a>.</p>
+ <p>The <a href=#task-source>task source</a> for the <a href=#concept-task title=concept-task>tasks</a> <a href=#queue-a-task title="queue a
+ task">queued</a> by algorithms in this section is the <a href=#dom-manipulation-task-source>DOM
+ manipulation task source</a>.</p>
<hr><p>What an <code><a href=#the-img-element>img</a></code> element represents depends on the <code title=attr-img-src><a href=#attr-img-src>src</a></code> attribute and the <code title=attr-img-alt><a href=#attr-img-alt>alt</a></code> attribute.</p>
Modified: source
===================================================================
--- source 2011-10-21 22:46:01 UTC (rev 6730)
+++ source 2011-10-24 17:11:51 UTC (rev 6731)
@@ -23995,18 +23995,18 @@
<dd>Set the <code>img</code> element to the <span
title="img-all">completely available</span> state, update the
- presentation of the image appropriately, and <span>queue a
- task</span> to <span>fire a simple event</span> named <code
- title="event-load">load</code> at the <code>img</code>
- element.</dd>
+ presentation of the image appropriately, and <span>fire a simple
+ event</span> named <code title="event-load">load</code> at the
+ <code>img</code> element.</dd>
+ <!-- http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1222 -->
+
<dt>Otherwise</dt>
<dd>Set the <code>img</code> element to the <span
- title="img-error">broken</span> state, and <span>queue a
- task</span> to <span>fire a simple event</span> named <code
- title="event-error">error</code> at the <code>img</code>
- element.</dd>
+ title="img-error">broken</span> state, and <span>fire a simple
+ event</span> named <code title="event-error">error</code> at the
+ <code>img</code> element.</dd>
</dl>
@@ -24075,9 +24075,10 @@
<p>This specification does not specify which image types are to be
supported.</p>
- <p>The <span>task source</span> for these <span
- title="concept-task">tasks</span> is the <span>DOM manipulation
- task source</span>.</p>
+ <p>The <span>task source</span> for the <span
+ title="concept-task">tasks</span> <span title="queue a
+ task">queued</span> by algorithms in this section is the <span>DOM
+ manipulation task source</span>.</p>
<hr>
More information about the Commit-Watchers
mailing list