W3C home > Mailing lists > Public > public-html-diffs@w3.org > October 2011

hixie: Fix a race condition between setting src and firing onload for <img>. (whatwg r6731)

From: poot <cvsmail@w3.org>
Date: Mon, 24 Oct 2011 13:16:14 -0400
To: public-html-diffs@w3.org
Message-Id: <E1RIO8E-0001x1-Ab@jay.w3.org>
hixie: Fix a race condition between setting src and firing onload for
<img>. (whatwg r6731)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5396&r2=1.5397&f=h
http://html5.org/tools/web-apps-tracker?from=6730&to=6731

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.5396
retrieving revision 1.5397
diff -u -d -r1.5396 -r1.5397
--- Overview.html	21 Oct 2011 22:49:53 -0000	1.5396
+++ Overview.html	24 Oct 2011 17:15:54 -0000	1.5397
@@ -320,7 +320,7 @@
 
    <h1>HTML5</h1>
    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-   <h2 class="no-num no-toc" id="editor-s-draft-21-october-2011">Editor's Draft 21 October 2011</h2>
+   <h2 class="no-num no-toc" id="editor-s-draft-24-october-2011">Editor's Draft 24 October 2011</h2>
    <dl><dt>Latest Published Version:</dt>
     <dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
     <dt>Latest Editor's Draft:</dt>
@@ -466,7 +466,7 @@
   Group</a> is the W3C working group responsible for this
   specification's progress along the W3C Recommendation
   track.
-  This specification is the 21 October 2011 Editor's Draft.
+  This specification is the 24 October 2011 Editor's Draft.
   </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>Work on this specification is also done at the <a href="http://www.whatwg.org/">WHATWG</a>. The W3C HTML working group
   actively pursues convergence with the WHATWG, as required by the <a href="http://www.w3.org/2007/03/HTML-WG-charter">W3C HTML working
   group charter</a>.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><p>This document was produced by a group operating under the <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5
@@ -18530,15 +18530,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>
+
+     
 
      <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
@@ -18596,8 +18598,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>
Received on Monday, 24 October 2011 17:16:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 24 October 2011 17:16:17 GMT