[html5] r6882 - [giow] (2) Make the readyState change, the 'readystatechange' event, and the 'lo [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Jan 9 16:08:34 PST 2012


Author: ianh
Date: 2012-01-09 16:08:33 -0800 (Mon, 09 Jan 2012)
New Revision: 6882

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make the readyState change, the 'readystatechange' event, and the 'load' event all happen synchronously in the same task so that you can check readyState to know whether you still have to attach an 'onload' event handler.
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2012-01-09 23:16:24 UTC (rev 6881)
+++ complete.html	2012-01-10 00:08:33 UTC (rev 6882)
@@ -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 9 January 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 10 January 2012</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>
@@ -87967,14 +87967,11 @@
    the <code><a href=#document>Document</a></code>.</li>
 
    <li><p><a href=#queue-a-task>Queue a task</a> to set the <a href=#current-document-readiness>current document
-   readiness</a> to "<code title="">complete</code>". <!-- this also fires an event
-   synchronously during the task --></li>
-
-   <li><p>If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing
-   context</a>, then <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=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, but with
-   its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to the
+   readiness</a> to "<code title="">complete</code>"<!-- this also
+   fires an event synchronously during the task -->, and then, if the
+   <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</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=#document>Document</a></code>'s
+   <code><a href=#window>Window</a></code> object, but with its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to the
    <code><a href=#document>Document</a></code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
    <code><a href=#window>Window</a></code> object).</li>
 

Modified: index
===================================================================
--- index	2012-01-09 23:16:24 UTC (rev 6881)
+++ index	2012-01-10 00:08:33 UTC (rev 6882)
@@ -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 9 January 2012</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 10 January 2012</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>
@@ -87967,14 +87967,11 @@
    the <code><a href=#document>Document</a></code>.</li>
 
    <li><p><a href=#queue-a-task>Queue a task</a> to set the <a href=#current-document-readiness>current document
-   readiness</a> to "<code title="">complete</code>". <!-- this also fires an event
-   synchronously during the task --></li>
-
-   <li><p>If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing
-   context</a>, then <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=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, but with
-   its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to the
+   readiness</a> to "<code title="">complete</code>"<!-- this also
+   fires an event synchronously during the task -->, and then, if the
+   <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</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=#document>Document</a></code>'s
+   <code><a href=#window>Window</a></code> object, but with its <code title=dom-event-target><a href=#dom-event-target>target</a></code> set to the
    <code><a href=#document>Document</a></code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
    <code><a href=#window>Window</a></code> object).</li>
 

Modified: source
===================================================================
--- source	2012-01-09 23:16:24 UTC (rev 6881)
+++ source	2012-01-10 00:08:33 UTC (rev 6882)
@@ -101810,14 +101810,13 @@
    the <code>Document</code>.</p></li>
 
    <li><p><span>Queue a task</span> to set the <span>current document
-   readiness</span> to "<code title="">complete</code>". <!-- this also fires an event
-   synchronously during the task --></p></li>
-
-   <li><p>If the <code>Document</code> is in a <span>browsing
-   context</span>, then <span>queue a task</span> to <span>fire a
-   simple event</span> named <code title="event-load">load</code> at
-   the <code>Document</code>'s <code>Window</code> object, but with
-   its <code title="dom-event-target">target</code> set to the
+   readiness</span> to "<code title="">complete</code>"<!-- this also
+   fires an event synchronously during the task -->, and then, if the
+   <code>Document</code> is in a <span>browsing context</span>, to
+   <span>fire a simple event</span> named <code
+   title="event-load">load</code> at the <code>Document</code>'s
+   <code>Window</code> object, but with its <code
+   title="dom-event-target">target</code> set to the
    <code>Document</code> object (and the <code
    title="dom-event-currentTarget">currentTarget</code> set to the
    <code>Window</code> object).</p></li>




More information about the Commit-Watchers mailing list