Skip to content

Commit

Permalink
[acgiow] (0) Add pageshow and pagehide events.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7896

git-svn-id: http://svn.whatwg.org/webapps@4231 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 21, 2009
1 parent f12f4bd commit f2875e0
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 2 deletions.
40 changes: 39 additions & 1 deletion complete.html
Expand Up @@ -13200,6 +13200,8 @@ <h4 id=the-body-element-0><span class=secno>4.4.1 </span>The <dfn><code>body</co
<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>
Expand All @@ -13221,6 +13223,8 @@ <h4 id=the-body-element-0><span class=secno>4.4.1 </span>The <dfn><code>body</co
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>;
Expand Down Expand Up @@ -49373,6 +49377,8 @@ <h3 id=the-window-object><span class=secno>6.3 </span>The <code><a href=#window>
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>;
Expand Down Expand Up @@ -51372,6 +51378,8 @@ <h5 id=event-handlers-on-elements,-document-objects,-and-window-objects><span cl
<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] -->
Expand Down Expand Up @@ -56265,6 +56273,12 @@ <h4 id=history-traversal><span class=secno>6.11.9 </span>History traversal</h4>
<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
Expand Down Expand Up @@ -56348,7 +56362,10 @@ <h4 id=unloading-documents><span class=secno>6.11.10 </span>Unloading documents<
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,
Expand Down Expand Up @@ -76229,6 +76246,11 @@ <h4 id=the-end><span class=secno>11.2.6 </span>The end</h4>
<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
Expand Down Expand Up @@ -82325,6 +82347,8 @@ <h4 id=frames><span class=secno>14.3.3 </span>Frames</h4>
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>;
Expand Down Expand Up @@ -82354,6 +82378,8 @@ <h4 id=frames><span class=secno>14.3.3 </span>Frames</h4>
<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>
Expand Down Expand Up @@ -83763,6 +83789,8 @@ <h3 class=no-num id=elements-1>Elements</h3>
<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>;
Expand Down Expand Up @@ -85594,6 +85622,16 @@ <h3 class=no-num id=attributes-0>Attributes</h3>
<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
Expand Down

0 comments on commit f2875e0

Please sign in to comment.