hixie: Make blank <iframe>s fire 'load' events when created. (whatwg r4772)

hixie: Make blank <iframe>s fire 'load' events when created. (whatwg
r4772)

http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.3819&r2=1.3820&f=h
http://html5.org/tools/web-apps-tracker?from=4771&to=4772

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.3819
retrieving revision 1.3820
diff -u -d -r1.3819 -r1.3820
--- Overview.html 18 Feb 2010 02:05:56 -0000 1.3819
+++ Overview.html 18 Feb 2010 02:27:21 -0000 1.3820
@@ -17017,7 +17017,7 @@
    <code><a href="#about:srcdoc">about:srcdoc</a></code>, and whose data consists of the value of
    the attribute.</dd>
 
-   <dt>Otherwise, if the <code title="attr-iframe-src"><a href="#attr-iframe-src">src</a></code>
+   <dt>If the <code title="attr-iframe-src"><a href="#attr-iframe-src">src</a></code>
    attribute is specified but the <code title="attr-iframe-srcdoc"><a href="#attr-iframe-srcdoc">srcdoc</a></code> attribute is not</dt>
 
    <dd>
@@ -17025,25 +17025,44 @@
     <ol><!--
      <li><p>If the value of the <code
      title="attr-iframe-src">src</code> attribute is the empty string,
-     and the user agent is processing this <code>iframe</code>'s
-     attributes for the first time, then abort these steps.</p></li>
+     jump to the <i title="">empty</i> step below.</p></li>
 --><li><p><a href="#resolve-a-url" title="resolve a url">Resolve</a> the value of
      the <code title="attr-iframe-src"><a href="#attr-iframe-src">src</a></code> attribute, relative
      to the <code><a href="#the-iframe-element">iframe</a></code> element.</li>
 
-     <li><p>If that is not successful, abort these steps.</li>
+     <li><p>If that is not successful, then jump to the <i title="">empty</i> step below.</li>
 
      <li><p>If the resulting <a href="#absolute-url">absolute URL</a> is an
      <a href="#ascii-case-insensitive">ASCII case-insensitive</a> match for the string
      "<code><a href="#about:blank">about:blank</a></code>", and the user agent is processing this
-     <code><a href="#the-iframe-element">iframe</a></code>'s attributes for the first time, then abort
-     these steps.</li>
+     <code><a href="#the-iframe-element">iframe</a></code>'s attributes for the first time, then jump to
+     the <i title="">empty</i> step below. (In cases other than the
+     first time, <code><a href="#about:blank">about:blank</a></code> is loaded
+     normally.)</li>
 
      <li><p><a href="#navigate">Navigate</a> the element's <a href="#browsing-context">browsing
      context</a> to the resulting <a href="#absolute-url">absolute
      URL</a>.</li>
 
-    </ol></dd>
+    </ol><p><i>Empty:</i> When the steps above require the user agent to
+    jump to the <i title="">empty</i> step, if the user agent is
+    processing this <code><a href="#the-iframe-element">iframe</a></code>'s attributes for the first
+    time, then the user agent must <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-iframe-element">iframe</a></code>
+    element. (After jumping to this step, the above steps are not
+    resumed.)</p>
+
+   </dd>
+
+   <dt>Otherwise</dt>
+
+   <dd>
+
+    <p><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-iframe-element">iframe</a></code> element.</p>
+
+   </dd>
 
   </dl><p>Any <a href="#navigate" title="navigate">navigation</a> required of the user
   agent in the <a href="#process-the-iframe-attributes">process the <code>iframe</code> attributes</a>
@@ -17137,6 +17156,10 @@
   <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 class="note">A <code title="event-load">load</code> event is also
+  fired at the <code><a href="#the-iframe-element">iframe</a></code> element when it is created if no
+  other data is loaded in it.</p>
+
   <p>When there is an <a href="#active-parser">active parser</a> in the
   <code><a href="#the-iframe-element">iframe</a></code>, and when anything in the <code><a href="#the-iframe-element">iframe</a></code> is
   <a href="#delay-the-load-event" title="delay the load event">delaying the load event</a> of

Received on Thursday, 18 February 2010 02:28:04 UTC