[html5] r8609 - [giow] (3) align 'load' and 'unload' events since they have similar quirks in pr [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue May 6 15:16:23 PDT 2014


Author: ianh
Date: 2014-05-06 15:16:18 -0700 (Tue, 06 May 2014)
New Revision: 8609

Modified:
   complete.html
   index
   source
Log:
[giow] (3) align 'load' and 'unload' events since they have similar quirks in practice
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25209
Affected topics: DOM APIs, HTML, HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2014-05-06 21:12:06 UTC (rev 8608)
+++ complete.html	2014-05-06 22:16:18 UTC (rev 8609)
@@ -3745,6 +3745,7 @@
      <li><dfn id=dom-event-istrusted title=dom-Event-isTrusted><code>isTrusted</code></dfn> attribute</li>
      <li>The <dfn id=concept-event-type title=concept-event-type>type</dfn> of an event</li>
      <li>The concept of an <dfn id=concept-event-listener title=concept-event-listener>event listener</dfn> and the <a href=#concept-event-listener title=concept-event-listener>event listeners</a> associated with an <code><a href=#eventtarget>EventTarget</a></code></li>
+     <li>The concept of a <dfn id=target-override>target override</dfn></li>
      <li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn></li> <!-- see bug 18780 -->
 
      <li>The <dfn id="document's-character-encoding" title="document's character encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type title=concept-document-content-type>content type</dfn> of a <code><a href=#document>Document</a></code></li>
@@ -69701,7 +69702,8 @@
 
    <li><p><i>Unload event</i>: If the <code><a href=#document>Document</a></code>'s <a href=#fired-unload>fired unload</a> flag is
    false, <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-unload><a href=#event-unload>unload</a></code> at the
-   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, with <i><a href=#target-override>target override</a></i> set to the
+   <code><a href=#document>Document</a></code> object.</li>
 
    <li><p>Decrease the <a href=#event-loop>event loop</a>'s <a href=#termination-nesting-level>termination nesting level</a> by
    one.</li>
@@ -94779,9 +94781,9 @@
     <ol><li><p>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>, create a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event named <code title=event-load><a href=#event-load>load</a></code> that does not bubble and is not cancelable and which uses the
-     <code><a href=#event>Event</a></code> interface, and <a href=#concept-event-dispatch title=concept-event-dispatch>dispatch</a> it at
-     the <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, with <i>target override</i> set to the
+     <li><p><i>Load event</i>: If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</a>,
+     <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-load><a href=#event-load>load</a></code> at the
+     <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, with <i><a href=#target-override>target override</a></i> set to the
      <code><a href=#document>Document</a></code> object.</li>
 
     </ol></li>

Modified: index
===================================================================
--- index	2014-05-06 21:12:06 UTC (rev 8608)
+++ index	2014-05-06 22:16:18 UTC (rev 8609)
@@ -3745,6 +3745,7 @@
      <li><dfn id=dom-event-istrusted title=dom-Event-isTrusted><code>isTrusted</code></dfn> attribute</li>
      <li>The <dfn id=concept-event-type title=concept-event-type>type</dfn> of an event</li>
      <li>The concept of an <dfn id=concept-event-listener title=concept-event-listener>event listener</dfn> and the <a href=#concept-event-listener title=concept-event-listener>event listeners</a> associated with an <code><a href=#eventtarget>EventTarget</a></code></li>
+     <li>The concept of a <dfn id=target-override>target override</dfn></li>
      <li>The concept of a regular <dfn id=event-parent>event parent</dfn> and a <dfn id=cross-boundary-event-parent>cross-boundary event parent</dfn></li> <!-- see bug 18780 -->
 
      <li>The <dfn id="document's-character-encoding" title="document's character encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn id=concept-document-content-type title=concept-document-content-type>content type</dfn> of a <code><a href=#document>Document</a></code></li>
@@ -69701,7 +69702,8 @@
 
    <li><p><i>Unload event</i>: If the <code><a href=#document>Document</a></code>'s <a href=#fired-unload>fired unload</a> flag is
    false, <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-unload><a href=#event-unload>unload</a></code> at the
-   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, with <i><a href=#target-override>target override</a></i> set to the
+   <code><a href=#document>Document</a></code> object.</li>
 
    <li><p>Decrease the <a href=#event-loop>event loop</a>'s <a href=#termination-nesting-level>termination nesting level</a> by
    one.</li>
@@ -94779,9 +94781,9 @@
     <ol><li><p>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>, create a <a href=#concept-events-trusted title=concept-events-trusted>trusted</a> event named <code title=event-load><a href=#event-load>load</a></code> that does not bubble and is not cancelable and which uses the
-     <code><a href=#event>Event</a></code> interface, and <a href=#concept-event-dispatch title=concept-event-dispatch>dispatch</a> it at
-     the <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, with <i>target override</i> set to the
+     <li><p><i>Load event</i>: If the <code><a href=#document>Document</a></code> is in a <a href=#browsing-context>browsing context</a>,
+     <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-load><a href=#event-load>load</a></code> at the
+     <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object, with <i><a href=#target-override>target override</a></i> set to the
      <code><a href=#document>Document</a></code> object.</li>
 
     </ol></li>

Modified: source
===================================================================
--- source	2014-05-06 21:12:06 UTC (rev 8608)
+++ source	2014-05-06 22:16:18 UTC (rev 8609)
@@ -2463,6 +2463,7 @@
      <li><dfn data-x="dom-Event-isTrusted"><code>isTrusted</code></dfn> attribute</li>
      <li>The <dfn data-x="concept-event-type">type</dfn> of an event</li>
      <li>The concept of an <dfn data-x=concept-event-listener>event listener</dfn> and the <span data-x=concept-event-listener>event listeners</span> associated with an <code>EventTarget</code></li>
+     <li>The concept of a <dfn>target override</dfn></li>
      <li>The concept of a regular <dfn>event parent</dfn> and a <dfn>cross-boundary event parent</dfn></li> <!-- see bug 18780 -->
 
      <li>The <dfn data-x="document's character encoding">encoding</dfn> (herein the <i>character encoding</i>) and <dfn data-x="concept-document-content-type">content type</dfn> of a <code>Document</code></li>
@@ -77827,7 +77828,8 @@
 
    <li><p><i>Unload event</i>: If the <code>Document</code>'s <span>fired unload</span> flag is
    false, <span>fire a simple event</span> named <code data-x="event-unload">unload</code> at the
-   <code>Document</code>'s <code>Window</code> object.</p></li>
+   <code>Document</code>'s <code>Window</code> object, with <i>target override</i> set to the
+   <code>Document</code> object.</p></li>
 
    <li><p>Decrease the <span>event loop</span>'s <span>termination nesting level</span> by
    one.</p></li>
@@ -105747,11 +105749,9 @@
      <li><p>Set the <span>current document readiness</span> to "<code data-x="">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>, create a <span
-     data-x="concept-events-trusted">trusted</span> event named <code
-     data-x="event-load">load</code> that does not bubble and is not cancelable and which uses the
-     <code>Event</code> interface, and <span data-x="concept-event-dispatch">dispatch</span> it at
-     the <code>Document</code>'s <code>Window</code> object, with <i>target override</i> set to the
+     <li><p><i>Load event</i>: If the <code>Document</code> is in a <span>browsing context</span>,
+     <span>fire a simple event</span> named <code data-x="event-load">load</code> at the
+     <code>Document</code>'s <code>Window</code> object, with <i>target override</i> set to the
      <code>Document</code> object.</p></li>
 
     </ol>




More information about the Commit-Watchers mailing list