[html5] r4920 - [e] (0) Clarify what iframe onerror fires for Fixing http://www.w3.org/Bugs/Publ [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Mar 31 12:41:07 PDT 2010


Author: ianh
Date: 2010-03-31 12:41:06 -0700 (Wed, 31 Mar 2010)
New Revision: 4920

Modified:
   complete.html
   index
   source
Log:
[e] (0) Clarify what iframe onerror fires for
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9251

Modified: complete.html
===================================================================
--- complete.html	2010-03-31 08:49:46 UTC (rev 4919)
+++ complete.html	2010-03-31 19:41:06 UTC (rev 4920)
@@ -20826,9 +20826,15 @@
   <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, 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 fails to load
-  (e.g. due to a network error), 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.</p>
+  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	2010-03-31 08:49:46 UTC (rev 4919)
+++ index	2010-03-31 19:41:06 UTC (rev 4920)
@@ -20724,9 +20724,15 @@
   <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, 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 fails to load
-  (e.g. due to a network error), 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.</p>
+  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	2010-03-31 08:49:46 UTC (rev 4919)
+++ source	2010-03-31 19:41:06 UTC (rev 4920)
@@ -22118,10 +22118,16 @@
   title="event-load">load</code> events are fired within the content
   itself, 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 fails to load
-  (e.g. due to a network error), 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.</p>
+  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




More information about the Commit-Watchers mailing list