[html5] r7407 - [giow] (3) Try to define when 'load' fires on iframes better. Fixing https://www [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Sep 25 20:33:37 PDT 2012


Author: ianh
Date: 2012-09-25 20:33:36 -0700 (Tue, 25 Sep 2012)
New Revision: 7407

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Try to define when 'load' fires on iframes better.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16829
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2012-09-26 03:27:07 UTC (rev 7406)
+++ complete.html	2012-09-26 03:33:36 UTC (rev 7407)
@@ -26750,15 +26750,15 @@
   with <a href=#replacement-enabled>replacement enabled</a>.</p> <!-- see also the note near similar text for the
   location.assign() method -->
 
-  <p>When content loads in an <code><a href=#the-iframe-element>iframe</a></code>, after any <code title=event-load>load</code>
-  events are fired within the content itself, <!-- XXX bug 16829 --> 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. When content whose <a href=#url>URL</a> has the <a href=#same-origin>same
-  origin</a> as the <code><a href=#the-iframe-element>iframe</a></code> element's <code><a href=#document>Document</a></code> fails to load (e.g. due
-  to a DNS error, network error, or if the server returned a 4xx or 5xx status code <a href=#concept-http-equivalent-codes title=concept-http-equivalent-codes>or equivalent</a>), 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-error>error</code> at
-  the element instead. (This event does not fire for <a href=#parse-error title="parse error">parse errors</a>,
-  script errors, or any errors for cross-origin resources.)</p>
+  <p>When a <code><a href=#document>Document</a></code> in an <code><a href=#the-iframe-element>iframe</a></code> is marked as <a href=#completely-loaded>completely
+  loaded</a>, the user agent must synchronously <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. When content whose
+  <a href=#url>URL</a> has the <a href=#same-origin>same origin</a> as the <code><a href=#the-iframe-element>iframe</a></code> element's
+  <code><a href=#document>Document</a></code> fails to load (e.g. due to a DNS error, network error, or if the server
+  returned a 4xx or 5xx status code <a href=#concept-http-equivalent-codes title=concept-http-equivalent-codes>or
+  equivalent</a>), 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-error>error</code> at the element instead. (This event does
+  not fire for <a href=#parse-error title="parse error">parse errors</a>, script errors, or any errors for
+  cross-origin resources.)</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>

Modified: index
===================================================================
--- index	2012-09-26 03:27:07 UTC (rev 7406)
+++ index	2012-09-26 03:33:36 UTC (rev 7407)
@@ -26750,15 +26750,15 @@
   with <a href=#replacement-enabled>replacement enabled</a>.</p> <!-- see also the note near similar text for the
   location.assign() method -->
 
-  <p>When content loads in an <code><a href=#the-iframe-element>iframe</a></code>, after any <code title=event-load>load</code>
-  events are fired within the content itself, <!-- XXX bug 16829 --> 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. When content whose <a href=#url>URL</a> has the <a href=#same-origin>same
-  origin</a> as the <code><a href=#the-iframe-element>iframe</a></code> element's <code><a href=#document>Document</a></code> fails to load (e.g. due
-  to a DNS error, network error, or if the server returned a 4xx or 5xx status code <a href=#concept-http-equivalent-codes title=concept-http-equivalent-codes>or equivalent</a>), 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-error>error</code> at
-  the element instead. (This event does not fire for <a href=#parse-error title="parse error">parse errors</a>,
-  script errors, or any errors for cross-origin resources.)</p>
+  <p>When a <code><a href=#document>Document</a></code> in an <code><a href=#the-iframe-element>iframe</a></code> is marked as <a href=#completely-loaded>completely
+  loaded</a>, the user agent must synchronously <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. When content whose
+  <a href=#url>URL</a> has the <a href=#same-origin>same origin</a> as the <code><a href=#the-iframe-element>iframe</a></code> element's
+  <code><a href=#document>Document</a></code> fails to load (e.g. due to a DNS error, network error, or if the server
+  returned a 4xx or 5xx status code <a href=#concept-http-equivalent-codes title=concept-http-equivalent-codes>or
+  equivalent</a>), 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-error>error</code> at the element instead. (This event does
+  not fire for <a href=#parse-error title="parse error">parse errors</a>, script errors, or any errors for
+  cross-origin resources.)</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>

Modified: source
===================================================================
--- source	2012-09-26 03:27:07 UTC (rev 7406)
+++ source	2012-09-26 03:33:36 UTC (rev 7407)
@@ -28842,16 +28842,16 @@
   with <span>replacement enabled</span>.</p> <!-- see also the note near similar text for the
   location.assign() method -->
 
-  <p>When content loads in an <code>iframe</code>, after any <code title="event-load">load</code>
-  events are fired within the content itself, <!-- XXX bug 16829 --> the user agent must <span>queue
-  a task</span> to <span>fire a simple event</span> named <code title="event-load">load</code> at
-  the <code>iframe</code> element. When content whose <span>URL</span> has the <span>same
-  origin</span> as the <code>iframe</code> element's <code>Document</code> fails to load (e.g. due
-  to a DNS error, network error, or if the server returned a 4xx or 5xx status code <span
-  title="concept-http-equivalent-codes">or equivalent</span>), then the user agent must <span>queue
-  a task</span> to <span>fire a simple event</span> named <code title="event-error">error</code> at
-  the element instead. (This event does not fire for <span title="parse error">parse errors</span>,
-  script errors, or any errors for cross-origin resources.)</p>
+  <p>When a <code>Document</code> in an <code>iframe</code> is marked as <span>completely
+  loaded</span>, the user agent must synchronously <span>fire a simple event</span> named <code
+  title="event-load">load</code> at the <code>iframe</code> element. When content whose
+  <span>URL</span> has the <span>same origin</span> as the <code>iframe</code> element's
+  <code>Document</code> fails to load (e.g. due to a DNS error, network error, or if the server
+  returned a 4xx or 5xx status code <span title="concept-http-equivalent-codes">or
+  equivalent</span>), then the user agent must <span>queue a task</span> to <span>fire a simple
+  event</span> named <code title="event-error">error</code> at the element instead. (This event does
+  not fire for <span title="parse error">parse errors</span>, script errors, or any errors for
+  cross-origin resources.)</p>
 
   <p>The <span>task source</span> for these <span title="concept-task">tasks</span> is the <span>DOM
   manipulation task source</span>.</p>




More information about the Commit-Watchers mailing list