[html5] r4800 - [giow] (2) Make pageshow/pagehide use PageTransitionEvent, to match reality as d [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Feb 23 03:29:16 PST 2010


Author: ianh
Date: 2010-02-23 03:29:14 -0800 (Tue, 23 Feb 2010)
New Revision: 4800

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make pageshow/pagehide use PageTransitionEvent, to match reality as described by zcorpan.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7896

Modified: complete.html
===================================================================
--- complete.html	2010-02-23 11:24:08 UTC (rev 4799)
+++ complete.html	2010-02-23 11:29:14 UTC (rev 4800)
@@ -55280,9 +55280,14 @@
 
      <li><p>If the <a href=#current-document-readiness>current document readiness</a> of the
      <i>specified entry</i>'s <code><a href=#document>Document</a></code> is "complete",
-     <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-pageshow>pageshow</code> at that
-     <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+     <a href=#queue-a-task>queue a task</a> to fire a <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> event at the
+     <code><a href=#window>Window</a></code> object of that <code><a href=#document>Document</a></code>, but
+     with its <code title=dom-event-target>target</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), using the
+     <code><a href=#pagetransitionevent>PageTransitionEvent</a></code> interface, with the <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code>
+     attribute set to true. This event must not bubble, must not be
+     cancelable, and has no default action.</li>
 
     </ol></li>
 
@@ -55446,8 +55451,40 @@
 
   </div>
 
+  <hr><p>The <dfn id=event-pageshow title=event-pageshow><code>pageshow</code></dfn> event
+  is fired when traversing <em>to</em> a <a href=#session-history-entry>session history
+  entry</a>.</p>
 
+  <p>The <dfn id=event-pagehide title=event-pagehide><code>pagehide</code></dfn>
+  event is fired when traversing <em>from</em> a <a href=#session-history-entry>session history
+  entry</a>.</p>
 
+  <pre class=idl>interface <dfn id=pagetransitionevent>PageTransitionEvent</dfn> : <a href=#event>Event</a> {
+  readonly attribute any <a href=#dom-pagetransitionevent-persisted title=dom-PageTransitionEvent-persisted>persisted</a>;
+  void <a href=#dom-pagetransitionevent-initpagetransitionevent title=dom-PageTransitionEvent-initPageTransitionEvent>initPageTransitionEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any persistedArg);
+};</pre>
+
+  <dl class=domintro><dt><var title="">event</var> . <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code></dt>
+
+   <dd>
+
+    <p>Returns false if the page is newly being loaded (and the <code title=event-load>load</code> event will fire). Otherwise, returns true.</p>
+
+   </dd>
+
+  </dl><div class=impl>
+
+  <p>The <dfn id=dom-pagetransitionevent-initpagetransitionevent title=dom-PageTransitionEvent-initPageTransitionEvent><code>initPageTransitionEvent()</code></dfn>
+  method must initialize the event in a manner analogous to the
+  similarly-named method in the DOM Events interfaces. <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p>
+
+  <p>The <dfn id=dom-pagetransitionevent-persisted title=dom-PageTransitionEvent-persisted><code>persisted</code></dfn>
+  attribute represents the context information for the event.</p>
+
+  </div>
+
+
+
   <h4 id=unloading-documents><span class=secno>6.5.10 </span>Unloading documents</h4>
 
   <div class=impl>
@@ -55527,8 +55564,14 @@
   whether the <code><a href=#document>Document</a></code> object is going to be
   re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>
 
-  <ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-pagehide>pagehide</code> at the
-   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+  <ol><li><p>Fire a <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code> event at
+   the <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, but
+   with its <code title=dom-event-target>target</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), using the
+   <code><a href=#pagetransitionevent>PageTransitionEvent</a></code> interface, with the <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code>
+   attribute set to true. This event must not bubble, must not be
+   cancelable, and has no default action.</li>
 
    <li><p><i>Unload event</i>: <a href=#fire-a-simple-event>Fire a simple event</a> named
    <code title=event-unload>unload</code> at the
@@ -58721,8 +58764,8 @@
     <tr><td><dfn id=handler-window-onmessage title=handler-window-onmessage><code>onmessage</code></dfn> <td> <code title=event-message><a href=#event-message>message</a></code> <!-- new for postMessage -->
     <tr><td><dfn id=handler-window-onoffline title=handler-window-onoffline><code>onoffline</code></dfn> <td> <code title=event-offline><a href=#event-offline>offline</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-ononline title=handler-window-ononline><code>ononline</code></dfn> <td> <code title=event-online><a href=#event-online>online</a></code> <!-- new -->
-    <tr><td><dfn id=handler-window-onpagehide title=handler-window-onpagehide><code>onpagehide</code></dfn> <td> <code title=event-pagehide>pagehide</code> <!-- new -->
-    <tr><td><dfn id=handler-window-onpageshow title=handler-window-onpageshow><code>onpageshow</code></dfn> <td> <code title=event-pageshow>pageshow</code> <!-- new -->
+    <tr><td><dfn id=handler-window-onpagehide title=handler-window-onpagehide><code>onpagehide</code></dfn> <td> <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code> <!-- new -->
+    <tr><td><dfn id=handler-window-onpageshow title=handler-window-onpageshow><code>onpageshow</code></dfn> <td> <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-onpopstate title=handler-window-onpopstate><code>onpopstate</code></dfn> <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-onredo title=handler-window-onredo><code>onredo</code></dfn> <td> <code title=event-redo><a href=#event-redo>redo</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-onresize title=handler-window-onresize><code>onresize</code></dfn> <td> <code title=event-resize>resize</code> <!-- widely used --> <!-- [CSSOM] -->
@@ -78335,9 +78378,14 @@
    <code><a href=#window>Window</a></code> object).</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-pageshow>pageshow</code> at the
-   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+   context</a>, then <a href=#queue-a-task>queue a task</a> to fire a <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> event at the
+   <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, but with
+   its <code title=dom-event-target>target</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), using the
+   <code><a href=#pagetransitionevent>PageTransitionEvent</a></code> interface, with the <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code>
+   attribute set to false. This event must not bubble, must not be
+   cancelable, and has no default action.</li>
 
    <li><p>If the <code><a href=#document>Document</a></code> has a <a href=#pending-state-object>pending state
    object</a>, then <a href=#queue-a-task>queue a task</a> to fire a <code title=event-popstate><a href=#event-popstate>popstate</a></code> event at the
@@ -88211,12 +88259,12 @@
 
     <tr><th> <code title="">onpagehide</code>
      <td> <code title=handler-window-onpagehide><a href=#handler-window-onpagehide>body</a></code>
-     <td> <code title=event-pagehide>pagehide</code> event handler for <code><a href=#window>Window</a></code> object
+     <td> <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code> event handler for <code><a href=#window>Window</a></code> object
      <td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
 
     <tr><th> <code title="">onpageshow</code>
      <td> <code title=handler-window-onpageshow><a href=#handler-window-onpageshow>body</a></code>
-     <td> <code title=event-pageshow>pageshow</code> event handler for <code><a href=#window>Window</a></code> object
+     <td> <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> event handler for <code><a href=#window>Window</a></code> object
      <td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
 
     <tr><th> <code title="">onpopstate</code>

Modified: index
===================================================================
--- index	2010-02-23 11:24:08 UTC (rev 4799)
+++ index	2010-02-23 11:29:14 UTC (rev 4800)
@@ -55187,9 +55187,14 @@
 
      <li><p>If the <a href=#current-document-readiness>current document readiness</a> of the
      <i>specified entry</i>'s <code><a href=#document>Document</a></code> is "complete",
-     <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-pageshow>pageshow</code> at that
-     <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+     <a href=#queue-a-task>queue a task</a> to fire a <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> event at the
+     <code><a href=#window>Window</a></code> object of that <code><a href=#document>Document</a></code>, but
+     with its <code title=dom-event-target>target</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), using the
+     <code><a href=#pagetransitionevent>PageTransitionEvent</a></code> interface, with the <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code>
+     attribute set to true. This event must not bubble, must not be
+     cancelable, and has no default action.</li>
 
     </ol></li>
 
@@ -55353,8 +55358,40 @@
 
   </div>
 
+  <hr><p>The <dfn id=event-pageshow title=event-pageshow><code>pageshow</code></dfn> event
+  is fired when traversing <em>to</em> a <a href=#session-history-entry>session history
+  entry</a>.</p>
 
+  <p>The <dfn id=event-pagehide title=event-pagehide><code>pagehide</code></dfn>
+  event is fired when traversing <em>from</em> a <a href=#session-history-entry>session history
+  entry</a>.</p>
 
+  <pre class=idl>interface <dfn id=pagetransitionevent>PageTransitionEvent</dfn> : <a href=#event>Event</a> {
+  readonly attribute any <a href=#dom-pagetransitionevent-persisted title=dom-PageTransitionEvent-persisted>persisted</a>;
+  void <a href=#dom-pagetransitionevent-initpagetransitionevent title=dom-PageTransitionEvent-initPageTransitionEvent>initPageTransitionEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any persistedArg);
+};</pre>
+
+  <dl class=domintro><dt><var title="">event</var> . <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code></dt>
+
+   <dd>
+
+    <p>Returns false if the page is newly being loaded (and the <code title=event-load>load</code> event will fire). Otherwise, returns true.</p>
+
+   </dd>
+
+  </dl><div class=impl>
+
+  <p>The <dfn id=dom-pagetransitionevent-initpagetransitionevent title=dom-PageTransitionEvent-initPageTransitionEvent><code>initPageTransitionEvent()</code></dfn>
+  method must initialize the event in a manner analogous to the
+  similarly-named method in the DOM Events interfaces. <a href=#refsDOMEVENTS>[DOMEVENTS]</a></p>
+
+  <p>The <dfn id=dom-pagetransitionevent-persisted title=dom-PageTransitionEvent-persisted><code>persisted</code></dfn>
+  attribute represents the context information for the event.</p>
+
+  </div>
+
+
+
   <h4 id=unloading-documents><span class=secno>6.5.10 </span>Unloading documents</h4>
 
   <div class=impl>
@@ -55434,8 +55471,14 @@
   whether the <code><a href=#document>Document</a></code> object is going to be
   re-used. (This is set by the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method.)</p>
 
-  <ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-pagehide>pagehide</code> at the
-   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+  <ol><li><p>Fire a <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code> event at
+   the <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, but
+   with its <code title=dom-event-target>target</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), using the
+   <code><a href=#pagetransitionevent>PageTransitionEvent</a></code> interface, with the <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code>
+   attribute set to true. This event must not bubble, must not be
+   cancelable, and has no default action.</li>
 
    <li><p><i>Unload event</i>: <a href=#fire-a-simple-event>Fire a simple event</a> named
    <code title=event-unload>unload</code> at the
@@ -58648,8 +58691,8 @@
     <tr><td><dfn id=handler-window-onmessage title=handler-window-onmessage><code>onmessage</code></dfn> <td> <code title=event-message><a href=#event-message>message</a></code> <!-- new for postMessage -->
     <tr><td><dfn id=handler-window-onoffline title=handler-window-onoffline><code>onoffline</code></dfn> <td> <code title=event-offline><a href=#event-offline>offline</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-ononline title=handler-window-ononline><code>ononline</code></dfn> <td> <code title=event-online><a href=#event-online>online</a></code> <!-- new -->
-    <tr><td><dfn id=handler-window-onpagehide title=handler-window-onpagehide><code>onpagehide</code></dfn> <td> <code title=event-pagehide>pagehide</code> <!-- new -->
-    <tr><td><dfn id=handler-window-onpageshow title=handler-window-onpageshow><code>onpageshow</code></dfn> <td> <code title=event-pageshow>pageshow</code> <!-- new -->
+    <tr><td><dfn id=handler-window-onpagehide title=handler-window-onpagehide><code>onpagehide</code></dfn> <td> <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code> <!-- new -->
+    <tr><td><dfn id=handler-window-onpageshow title=handler-window-onpageshow><code>onpageshow</code></dfn> <td> <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-onpopstate title=handler-window-onpopstate><code>onpopstate</code></dfn> <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-onredo title=handler-window-onredo><code>onredo</code></dfn> <td> <code title=event-redo><a href=#event-redo>redo</a></code> <!-- new -->
     <tr><td><dfn id=handler-window-onresize title=handler-window-onresize><code>onresize</code></dfn> <td> <code title=event-resize>resize</code> <!-- widely used --> <!-- [CSSOM] -->
@@ -72639,9 +72682,14 @@
    <code><a href=#window>Window</a></code> object).</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-pageshow>pageshow</code> at the
-   <code><a href=#document>Document</a></code>'s <code><a href=#window>Window</a></code> object.</li>
+   context</a>, then <a href=#queue-a-task>queue a task</a> to fire a <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> event at the
+   <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, but with
+   its <code title=dom-event-target>target</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), using the
+   <code><a href=#pagetransitionevent>PageTransitionEvent</a></code> interface, with the <code title=dom-PageTransitionEvent-persisted><a href=#dom-pagetransitionevent-persisted>persisted</a></code>
+   attribute set to false. This event must not bubble, must not be
+   cancelable, and has no default action.</li>
 
    <li><p>If the <code><a href=#document>Document</a></code> has a <a href=#pending-state-object>pending state
    object</a>, then <a href=#queue-a-task>queue a task</a> to fire a <code title=event-popstate><a href=#event-popstate>popstate</a></code> event at the
@@ -82515,12 +82563,12 @@
 
     <tr><th> <code title="">onpagehide</code>
      <td> <code title=handler-window-onpagehide><a href=#handler-window-onpagehide>body</a></code>
-     <td> <code title=event-pagehide>pagehide</code> event handler for <code><a href=#window>Window</a></code> object
+     <td> <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code> event handler for <code><a href=#window>Window</a></code> object
      <td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
 
     <tr><th> <code title="">onpageshow</code>
      <td> <code title=handler-window-onpageshow><a href=#handler-window-onpageshow>body</a></code>
-     <td> <code title=event-pageshow>pageshow</code> event handler for <code><a href=#window>Window</a></code> object
+     <td> <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code> event handler for <code><a href=#window>Window</a></code> object
      <td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
 
     <tr><th> <code title="">onpopstate</code>
@@ -83033,12 +83081,12 @@
      <td> <code><a href=#event>Event</a></code>
      <td> Fired at the <code><a href=#window>Window</a></code> when the network connections returns
 
-    <tr><td> <code title=event-pagehide>pagehide</code>
-     <td> <code><a href=#event>Event</a></code>
+    <tr><td> <code title=event-pagehide><a href=#event-pagehide>pagehide</a></code>
+     <td> <code><a href=#pagetransitionevent>PageTransitionEvent</a></code>
      <td> Fired at the <code><a href=#window>Window</a></code> when the page's entry in the <a href=#session-history>session history</a> stops being the <a href=#current-entry>current entry</a>
 
-    <tr><td> <code title=event-pageshow>pageshow</code>
-     <td> <code><a href=#event>Event</a></code>
+    <tr><td> <code title=event-pageshow><a href=#event-pageshow>pageshow</a></code>
+     <td> <code><a href=#pagetransitionevent>PageTransitionEvent</a></code>
      <td> Fired at the <code><a href=#window>Window</a></code> when the page's entry in the <a href=#session-history>session history</a> becomes the <a href=#current-entry>current entry</a>
 
     <tr><td> <code title=event-popstate><a href=#event-popstate>popstate</a></code>

Modified: source
===================================================================
--- source	2010-02-23 11:24:08 UTC (rev 4799)
+++ source	2010-02-23 11:29:14 UTC (rev 4800)
@@ -62283,9 +62283,17 @@
 
      <li><p>If the <span>current document readiness</span> of the
      <i>specified entry</i>'s <code>Document</code> is "complete",
-     <span>queue a task</span> to <span>fire a simple event</span>
-     named <code title="event-pageshow">pageshow</code> at that
-     <code>Document</code>'s <code>Window</code> object.</p></li>
+     <span>queue a task</span> to fire a <code
+     title="event-pageshow">pageshow</code> event at the
+     <code>Window</code> object of that <code>Document</code>, 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), using the
+     <code>PageTransitionEvent</code> interface, with the <code
+     title="dom-PageTransitionEvent-persisted">persisted</code>
+     attribute set to true. This event must not bubble, must not be
+     cancelable, and has no default action.</p></li>
 
     </ol>
 
@@ -62487,8 +62495,49 @@
 
   </div>
 
+  <hr>
 
+  <p>The <dfn title="event-pageshow"><code>pageshow</code></dfn> event
+  is fired when traversing <em>to</em> a <span>session history
+  entry</span>.</p>
 
+  <p>The <dfn title="event-pagehide"><code>pagehide</code></dfn>
+  event is fired when traversing <em>from</em> a <span>session history
+  entry</span>.</p>
+
+  <pre class="idl">interface <dfn>PageTransitionEvent</dfn> : <span>Event</span> {
+  readonly attribute any <span title="dom-PageTransitionEvent-persisted">persisted</span>;
+  void <span title="dom-PageTransitionEvent-initPageTransitionEvent">initPageTransitionEvent</span>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any persistedArg);
+};</pre>
+
+  <dl class="domintro">
+
+   <dt><var title="">event</var> . <code title="dom-PageTransitionEvent-persisted">persisted</code></dt>
+
+   <dd>
+
+    <p>Returns false if the page is newly being loaded (and the <code title="event-load">load</code> event will fire). Otherwise, returns true.</p>
+
+   </dd>
+
+  </dl>
+
+  <div class="impl">
+
+  <p>The <dfn
+  title="dom-PageTransitionEvent-initPageTransitionEvent"><code>initPageTransitionEvent()</code></dfn>
+  method must initialize the event in a manner analogous to the
+  similarly-named method in the DOM Events interfaces. <a
+  href="#refsDOMEVENTS">[DOMEVENTS]</a></p>
+
+  <p>The <dfn
+  title="dom-PageTransitionEvent-persisted"><code>persisted</code></dfn>
+  attribute represents the context information for the event.</p>
+
+  </div>
+
+
+
   <h4>Unloading documents</h4>
 
   <div class="impl">
@@ -62587,9 +62636,16 @@
 
   <ol>
 
-   <li><p><span>Fire a simple event</span> named <code
-   title="event-pagehide">pagehide</code> at the
-   <code>Document</code>'s <code>Window</code> object.</p></li>
+   <li><p>Fire a <code title="event-pagehide">pagehide</code> event at
+   the <code>Window</code> object of the <code>Document</code>, 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), using the
+   <code>PageTransitionEvent</code> interface, with the <code
+   title="dom-PageTransitionEvent-persisted">persisted</code>
+   attribute set to true. This event must not bubble, must not be
+   cancelable, and has no default action.</p></li>
 
    <li><p><i>Unload event</i>: <span>Fire a simple event</span> named
    <code title="event-unload">unload</code> at the
@@ -89311,10 +89367,17 @@
    <code>Window</code> object).</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-pageshow">pageshow</code> at the
-   <code>Document</code>'s <code>Window</code> object.</p></li>
+   context</span>, then <span>queue a task</span> to fire a <code
+   title="event-pageshow">pageshow</code> event at the
+   <code>Window</code> object of the <code>Document</code>, 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), using the
+   <code>PageTransitionEvent</code> interface, with the <code
+   title="dom-PageTransitionEvent-persisted">persisted</code>
+   attribute set to false. This event must not bubble, must not be
+   cancelable, and has no default action.</p></li>
 
    <li><p>If the <code>Document</code> has a <span>pending state
    object</span>, then <span>queue a task</span> to fire a <code
@@ -99121,12 +99184,12 @@
 
     <tr>
      <td> <code title="event-pagehide">pagehide</code>
-     <td> <code>Event</code>
+     <td> <code>PageTransitionEvent</code>
      <td> Fired at the <code>Window</code> when the page's entry in the <span>session history</span> stops being the <span>current entry</span>
 
     <tr>
      <td> <code title="event-pageshow">pageshow</code>
-     <td> <code>Event</code>
+     <td> <code>PageTransitionEvent</code>
      <td> Fired at the <code>Window</code> when the page's entry in the <span>session history</span> becomes the <span>current entry</span>
 
     <tr>




More information about the Commit-Watchers mailing list