[html5] r4231 - [acgiow] (0) Add pageshow and pagehide events. Fixing http://www.w3.org/Bugs/Pub [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Oct 20 23:20:42 PDT 2009


Author: ianh
Date: 2009-10-20 23:20:38 -0700 (Tue, 20 Oct 2009)
New Revision: 4231

Modified:
   complete.html
   index
   source
Log:
[acgiow] (0) Add pageshow and pagehide events.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7896

Modified: complete.html
===================================================================
--- complete.html	2009-10-21 05:56:31 UTC (rev 4230)
+++ complete.html	2009-10-21 06:20:38 UTC (rev 4231)
@@ -13200,6 +13200,8 @@
    <dd><code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code></dd>
    <dd><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></dd>
    <dd><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></dd>
+   <dd><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></dd>
+   <dd><code title=handler-window-onpageshow><a href=#handler-window-onpageshow>onpageshow</a></code></dd>
    <dd><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></dd>
    <dd><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></dd>
    <dd><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></dd>
@@ -13221,6 +13223,8 @@
            attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onstorage title=handler-window-onstorage>onstorage</a>;
@@ -49373,6 +49377,8 @@
            attribute <a href=#function>Function</a> <a href=#handler-onpause title=handler-onpause>onpause</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onplay title=handler-onplay>onplay</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onplaying title=handler-onplaying>onplaying</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onprogress title=handler-onprogress>onprogress</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onratechange title=handler-onratechange>onratechange</a>;
@@ -51372,6 +51378,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-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] -->
@@ -56265,6 +56273,12 @@
      <a href=#resulting-autocompletion-state>resulting autocompletion state</a> is <i title="">off</i>, invoke the <a href=#concept-form-reset-control title=concept-form-reset-control>reset algorithm</a> of each
      of those elements.</li>
 
+     <li><p>If the the <a href=#current-document-readiness>current document readiness</a> of the
+     <i>specified entry</i>'s <code>Document</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>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
+
     </ol></li>
 
    <li><p>Set <a href="#the-document's-current-address">the document's current address</a> to the URL
@@ -56348,7 +56362,10 @@
   whether the <code>Document</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-unload>unload</code> at the <code>Document</code>'s
+  <ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-pagehide>pagehide</code> at the
+   <code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
+
+   <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
    <code><a href=#window>Window</a></code> object.</li>
 
    <li><p>If any event listeners were triggered by the previous step,
@@ -76229,6 +76246,11 @@
    <code>Document</code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
    <code><a href=#window>Window</a></code> object).</li>
 
+   <li><p>If the <code>Document</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>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
+
    <li><p>If the <code>Document</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 in no namespace on the
    <code>Document</code>'s <code><a href=#window>Window</a></code> object using the
@@ -82325,6 +82347,8 @@
            attribute <a href=#function>Function</a> <a href=#handler-window-onmessage title=handler-window-onmessage>onmessage</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
@@ -82354,6 +82378,8 @@
    <li><code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code></li>
    <li><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></li>
    <li><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></li>
+   <li><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></li>
+   <li><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></li>
    <li><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></li>
    <li><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></li>
    <li><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></li>
@@ -83763,6 +83789,8 @@
          <code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code>;
          <code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code>;
          <code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code>;
+         <code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code>;
+         <code title=handler-window-onpageshow><a href=#handler-window-onpageshow>onpageshow</a></code>;
          <code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code>;
          <code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code>;
          <code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code>;
@@ -85594,6 +85622,16 @@
      <td> <code title=event-media-playing><a href=#event-media-playing>playing</a></code> event handler
      <td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
 
+    <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> <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> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
+
     <tr><th> <code title="">onpopstate</code>
      <td> <code title=handler-window-onpopstate><a href=#handler-window-onpopstate>body</a></code>
      <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> event handler for <code><a href=#window>Window</a></code> object

Modified: index
===================================================================
--- index	2009-10-21 05:56:31 UTC (rev 4230)
+++ index	2009-10-21 06:20:38 UTC (rev 4231)
@@ -13030,6 +13030,8 @@
    <dd><code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code></dd>
    <dd><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></dd>
    <dd><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></dd>
+   <dd><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></dd>
+   <dd><code title=handler-window-onpageshow><a href=#handler-window-onpageshow>onpageshow</a></code></dd>
    <dd><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></dd>
    <dd><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></dd>
    <dd><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></dd>
@@ -13051,6 +13053,8 @@
            attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onstorage title=handler-window-onstorage>onstorage</a>;
@@ -46533,6 +46537,8 @@
            attribute <a href=#function>Function</a> <a href=#handler-onpause title=handler-onpause>onpause</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onplay title=handler-onplay>onplay</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onplaying title=handler-onplaying>onplaying</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onprogress title=handler-onprogress>onprogress</a>;
            attribute <a href=#function>Function</a> <a href=#handler-onratechange title=handler-onratechange>onratechange</a>;
@@ -48532,6 +48538,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-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] -->
@@ -53425,6 +53433,12 @@
      <a href=#resulting-autocompletion-state>resulting autocompletion state</a> is <i title="">off</i>, invoke the <a href=#concept-form-reset-control title=concept-form-reset-control>reset algorithm</a> of each
      of those elements.</li>
 
+     <li><p>If the the <a href=#current-document-readiness>current document readiness</a> of the
+     <i>specified entry</i>'s <code>Document</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>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
+
     </ol></li>
 
    <li><p>Set <a href="#the-document's-current-address">the document's current address</a> to the URL
@@ -53508,7 +53522,10 @@
   whether the <code>Document</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-unload>unload</code> at the <code>Document</code>'s
+  <ol><li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-pagehide>pagehide</code> at the
+   <code>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
+
+   <li><p><a href=#fire-a-simple-event>Fire a simple event</a> named <code title=event-unload>unload</code> at the <code>Document</code>'s
    <code><a href=#window>Window</a></code> object.</li>
 
    <li><p>If any event listeners were triggered by the previous step,
@@ -67292,6 +67309,11 @@
    <code>Document</code> object (and the <code title=dom-event-currentTarget>currentTarget</code> set to the
    <code><a href=#window>Window</a></code> object).</li>
 
+   <li><p>If the <code>Document</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>Document</code>'s <code><a href=#window>Window</a></code> object.</li>
+
    <li><p>If the <code>Document</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 in no namespace on the
    <code>Document</code>'s <code><a href=#window>Window</a></code> object using the
@@ -73388,6 +73410,8 @@
            attribute <a href=#function>Function</a> <a href=#handler-window-onmessage title=handler-window-onmessage>onmessage</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onoffline title=handler-window-onoffline>onoffline</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-ononline title=handler-window-ononline>ononline</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpagehide title=handler-window-onpagehide>onpagehide</a>;
+           attribute <a href=#function>Function</a> <a href=#handler-window-onpageshow title=handler-window-onpageshow>onpageshow</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onpopstate title=handler-window-onpopstate>onpopstate</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onredo title=handler-window-onredo>onredo</a>;
            attribute <a href=#function>Function</a> <a href=#handler-window-onresize title=handler-window-onresize>onresize</a>;
@@ -73417,6 +73441,8 @@
    <li><code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code></li>
    <li><code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code></li>
    <li><code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code></li>
+   <li><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></li>
+   <li><code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code></li>
    <li><code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code></li>
    <li><code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code></li>
    <li><code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code></li>
@@ -74826,6 +74852,8 @@
          <code title=handler-window-onmessage><a href=#handler-window-onmessage>onmessage</a></code>;
          <code title=handler-window-onoffline><a href=#handler-window-onoffline>onoffline</a></code>;
          <code title=handler-window-ononline><a href=#handler-window-ononline>ononline</a></code>;
+         <code title=handler-window-onpagehide><a href=#handler-window-onpagehide>onpagehide</a></code>;
+         <code title=handler-window-onpageshow><a href=#handler-window-onpageshow>onpageshow</a></code>;
          <code title=handler-window-onpopstate><a href=#handler-window-onpopstate>onpopstate</a></code>;
          <code title=handler-window-onredo><a href=#handler-window-onredo>onredo</a></code>;
          <code title=handler-window-onresize><a href=#handler-window-onresize>onresize</a></code>;
@@ -76657,6 +76685,16 @@
      <td> <code title=event-media-playing><a href=#event-media-playing>playing</a></code> event handler
      <td> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
 
+    <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> <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> <a href=#event-handler-content-attributes title="event handler content attributes">Event handler content attribute</a>
+
     <tr><th> <code title="">onpopstate</code>
      <td> <code title=handler-window-onpopstate><a href=#handler-window-onpopstate>body</a></code>
      <td> <code title=event-popstate><a href=#event-popstate>popstate</a></code> event handler for <code><a href=#window>Window</a></code> object
@@ -77155,6 +77193,14 @@
      <td> <code>Event</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>Event</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>Event</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>
      <td> <code><a href=#popstateevent>PopStateEvent</a></code>
      <td> Fired at the <code><a href=#window>Window</a></code> when the user navigates the <a href=#session-history>session history</a>

Modified: source
===================================================================
--- source	2009-10-21 05:56:31 UTC (rev 4230)
+++ source	2009-10-21 06:20:38 UTC (rev 4231)
@@ -13849,6 +13849,8 @@
    <dd><code title="handler-window-onmessage">onmessage</code></dd>
    <dd><code title="handler-window-onoffline">onoffline</code></dd>
    <dd><code title="handler-window-ononline">ononline</code></dd>
+   <dd><code title="handler-window-onpagehide">onpagehide</code></dd>
+   <dd><code title="handler-window-onpageshow">onpageshow</code></dd>
    <dd><code title="handler-window-onpopstate">onpopstate</code></dd>
    <dd><code title="handler-window-onredo">onredo</code></dd>
    <dd><code title="handler-window-onresize">onresize</code></dd>
@@ -13870,6 +13872,8 @@
            attribute <span>Function</span> <span title="handler-window-onoffline">onoffline</span>;
            attribute <span>Function</span> <span title="handler-window-ononline">ononline</span>;
            attribute <span>Function</span> <span title="handler-window-onpopstate">onpopstate</span>;
+           attribute <span>Function</span> <span title="handler-window-onpagehide">onpagehide</span>;
+           attribute <span>Function</span> <span title="handler-window-onpageshow">onpageshow</span>;
            attribute <span>Function</span> <span title="handler-window-onredo">onredo</span>;
            attribute <span>Function</span> <span title="handler-window-onresize">onresize</span>;
            attribute <span>Function</span> <span title="handler-window-onstorage">onstorage</span>;
@@ -55460,6 +55464,8 @@
            attribute <span>Function</span> <span title="handler-onpause">onpause</span>;
            attribute <span>Function</span> <span title="handler-onplay">onplay</span>;
            attribute <span>Function</span> <span title="handler-onplaying">onplaying</span>;
+           attribute <span>Function</span> <span title="handler-window-onpagehide">onpagehide</span>;
+           attribute <span>Function</span> <span title="handler-window-onpageshow">onpageshow</span>;
            attribute <span>Function</span> <span title="handler-window-onpopstate">onpopstate</span>;
            attribute <span>Function</span> <span title="handler-onprogress">onprogress</span>;
            attribute <span>Function</span> <span title="handler-onratechange">onratechange</span>;
@@ -57788,6 +57794,8 @@
     <tr><td><dfn title="handler-window-onmessage"><code>onmessage</code></dfn> <td> <code title="event-message">message</code> <!-- new for postMessage -->
     <tr><td><dfn title="handler-window-onoffline"><code>onoffline</code></dfn> <td> <code title="event-offline">offline</code> <!-- new -->
     <tr><td><dfn title="handler-window-ononline"><code>ononline</code></dfn> <td> <code title="event-online">online</code> <!-- new -->
+    <tr><td><dfn title="handler-window-onpagehide"><code>onpagehide</code></dfn> <td> <code title="event-pagehide">pagehide</code> <!-- new -->
+    <tr><td><dfn title="handler-window-onpageshow"><code>onpageshow</code></dfn> <td> <code title="event-pageshow">pageshow</code> <!-- new -->
     <tr><td><dfn title="handler-window-onpopstate"><code>onpopstate</code></dfn> <td> <code title="event-popstate">popstate</code> <!-- new -->
     <tr><td><dfn title="handler-window-onredo"><code>onredo</code></dfn> <td> <code title="event-redo">redo</code> <!-- new -->
     <tr><td><dfn title="handler-window-onresize"><code>onresize</code></dfn> <td> <code title="event-resize">resize</code> <!-- widely used --> <!-- [CSSOM] -->
@@ -63464,6 +63472,12 @@
      title="concept-form-reset-control">reset algorithm</span> of each
      of those elements.</p></li>
 
+     <li><p>If the 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>
+
     </ol>
 
    </li>
@@ -63571,6 +63585,10 @@
   <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><span>Fire a simple event</span> named <code
    title="event-unload">unload</code> at the <code>Document</code>'s
    <code>Window</code> object.</p></li>
 
@@ -85764,6 +85782,12 @@
    title="dom-event-currentTarget">currentTarget</code> set to the
    <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>
+
    <li><p>If the <code>Document</code> has a <span>pending state
    object</span>, then <span>queue a task</span> to fire a <code
    title="event-popstate">popstate</code> event in no namespace on the
@@ -90349,6 +90373,8 @@
            attribute <span>Function</span> <span title="handler-window-onmessage">onmessage</span>;
            attribute <span>Function</span> <span title="handler-window-onoffline">onoffline</span>;
            attribute <span>Function</span> <span title="handler-window-ononline">ononline</span>;
+           attribute <span>Function</span> <span title="handler-window-onpagehide">onpagehide</span>;
+           attribute <span>Function</span> <span title="handler-window-onpageshow">onpageshow</span>;
            attribute <span>Function</span> <span title="handler-window-onpopstate">onpopstate</span>;
            attribute <span>Function</span> <span title="handler-window-onredo">onredo</span>;
            attribute <span>Function</span> <span title="handler-window-onresize">onresize</span>;
@@ -90379,6 +90405,8 @@
    <li><code title="handler-window-onmessage">onmessage</code></li>
    <li><code title="handler-window-onoffline">onoffline</code></li>
    <li><code title="handler-window-ononline">ononline</code></li>
+   <li><code title="handler-window-onpagehide">onpagehide</code></li>
+   <li><code title="handler-window-onpagehide">onpagehide</code></li>
    <li><code title="handler-window-onpopstate">onpopstate</code></li>
    <li><code title="handler-window-onredo">onredo</code></li>
    <li><code title="handler-window-onresize">onresize</code></li>
@@ -92063,6 +92091,8 @@
          <code title="handler-window-onmessage">onmessage</code>;
          <code title="handler-window-onoffline">onoffline</code>;
          <code title="handler-window-ononline">ononline</code>;
+         <code title="handler-window-onpagehide">onpagehide</code>;
+         <code title="handler-window-onpageshow">onpageshow</code>;
          <code title="handler-window-onpopstate">onpopstate</code>;
          <code title="handler-window-onredo">onredo</code>;
          <code title="handler-window-onresize">onresize</code>;
@@ -94341,6 +94371,18 @@
      <td> <span title="event handler content attributes">Event handler content attribute</span>
 
     <tr>
+     <th> <code title="">onpagehide</code>
+     <td> <code title="handler-window-onpagehide">body</code>
+     <td> <code title="event-pagehide">pagehide</code> event handler for <code>Window</code> object
+     <td> <span title="event handler content attributes">Event handler content attribute</span>
+
+    <tr>
+     <th> <code title="">onpageshow</code>
+     <td> <code title="handler-window-onpageshow">body</code>
+     <td> <code title="event-pageshow">pageshow</code> event handler for <code>Window</code> object
+     <td> <span title="event handler content attributes">Event handler content attribute</span>
+
+    <tr>
      <th> <code title="">onpopstate</code>
      <td> <code title="handler-window-onpopstate">body</code>
      <td> <code title="event-popstate">popstate</code> event handler for <code>Window</code> object
@@ -94990,6 +95032,16 @@
      <td> Fired at the <code>Window</code> when the network connections returns
 
     <tr>
+     <td> <code title="event-pagehide">pagehide</code>
+     <td> <code>Event</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> Fired at the <code>Window</code> when the page's entry in the <span>session history</span> becomes the <span>current entry</span>
+
+    <tr>
      <td> <code title="event-popstate">popstate</code>
      <td> <code>PopStateEvent</code>
      <td> Fired at the <code>Window</code> when the user navigates the <span>session history</span>




More information about the Commit-Watchers mailing list