[html5] r5377 - [giow] (1) Make popstate fire even when there's no new state
whatwg at whatwg.org
whatwg at whatwg.org
Fri Aug 27 16:02:44 PDT 2010
Author: ianh
Date: 2010-08-27 16:02:43 -0700 (Fri, 27 Aug 2010)
New Revision: 5377
Modified:
complete.html
index
source
Log:
[giow] (1) Make popstate fire even when there's no new state
Modified: complete.html
===================================================================
--- complete.html 2010-08-27 21:50:50 UTC (rev 5376)
+++ complete.html 2010-08-27 23:02:43 UTC (rev 5377)
@@ -61257,43 +61257,35 @@
its rendering, for instance the scroll position or values of form
fields, that it had previously recorded.</li>
+ <li><p>If the entry is a <a href=#state-object>state object</a> entry, let <var title="">state</var> be a <a href=#structured-clone>structured clone</a> of that
+ state object. Otherwise, let <var title="">state</var> be
+ null.</li>
+
<li>
- <p>If the <i>specified entry</i> is a state object or the first
- entry for a <code><a href=#document>Document</a></code>, the user agent must run the
- following substeps:</p>
+ <p>Run the appropriate steps according to the conditions
+ described:</p>
- <ol><li><p>If the entry is a <a href=#state-object>state object</a> entry, let <var title="">state</var> be a <a href=#structured-clone>structured clone</a> of that
- state object. Otherwise, let <var title="">state</var> be
- null.</li>
+ <dl class=switch><dt>If the <a href=#current-document-readiness>current document readiness</a> is set to the
+ string "complete"</dt>
- <li>
+ <dd><p><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
+ <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, using
+ the <code><a href=#popstateevent>PopStateEvent</a></code> interface, with the <code title=dom-PopStateEvent-state><a href=#dom-popstateevent-state>state</a></code> attribute set to the
+ value of <var title="">state</var>. This event must bubble but
+ not be cancelable and has no default action.</dd>
- <p>Run the appropriate steps according to the conditions
- described:</p>
+ <dt>Otherwise</dt>
- <dl class=switch><dt>If the <a href=#current-document-readiness>current document readiness</a> is set to the
- string "complete"</dt>
+ <dd><p>Let the <code><a href=#document>Document</a></code>'s <dfn id=pending-state-object>pending state
+ object</dfn> be <var title="">state</var>. (If there was already
+ a <a href=#pending-state-object>pending state object</a>, the previous one is
+ discarded.)</p>
- <dd><p><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
- <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, using
- the <code><a href=#popstateevent>PopStateEvent</a></code> interface, with the <code title=dom-PopStateEvent-state><a href=#dom-popstateevent-state>state</a></code> attribute set to
- the value of <var title="">state</var>. This event must bubble
- but not be cancelable and has no default action.</dd>
+ <p class=note>The event will then be fired just after the <code title=event-load>load</code> event.</dd>
- <dt>Otherwise</dt>
+ </dl></li>
- <dd><p>Let the <code><a href=#document>Document</a></code>'s <dfn id=pending-state-object>pending state
- object</dfn> be <var title="">state</var>. (If there was already
- a <a href=#pending-state-object>pending state object</a>, the previous one is
- discarded.)</p>
-
- <p class=note>The event will then be fired just after the <code title=event-load>load</code> event.</dd>
-
- </dl></li>
-
- </ol></li>
-
<li><p>If <var title="">hash changed</var> is true, then
<a href=#queue-a-task>queue a task</a> to fire a <code title=event-hashchange><a href=#event-hashchange>hashchange</a></code> event at the
<a href=#browsing-context>browsing context</a>'s <code><a href=#window>Window</a></code> object, using
Modified: index
===================================================================
--- index 2010-08-27 21:50:50 UTC (rev 5376)
+++ index 2010-08-27 23:02:43 UTC (rev 5377)
@@ -61182,43 +61182,35 @@
its rendering, for instance the scroll position or values of form
fields, that it had previously recorded.</li>
+ <li><p>If the entry is a <a href=#state-object>state object</a> entry, let <var title="">state</var> be a <a href=#structured-clone>structured clone</a> of that
+ state object. Otherwise, let <var title="">state</var> be
+ null.</li>
+
<li>
- <p>If the <i>specified entry</i> is a state object or the first
- entry for a <code><a href=#document>Document</a></code>, the user agent must run the
- following substeps:</p>
+ <p>Run the appropriate steps according to the conditions
+ described:</p>
- <ol><li><p>If the entry is a <a href=#state-object>state object</a> entry, let <var title="">state</var> be a <a href=#structured-clone>structured clone</a> of that
- state object. Otherwise, let <var title="">state</var> be
- null.</li>
+ <dl class=switch><dt>If the <a href=#current-document-readiness>current document readiness</a> is set to the
+ string "complete"</dt>
- <li>
+ <dd><p><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
+ <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, using
+ the <code><a href=#popstateevent>PopStateEvent</a></code> interface, with the <code title=dom-PopStateEvent-state><a href=#dom-popstateevent-state>state</a></code> attribute set to the
+ value of <var title="">state</var>. This event must bubble but
+ not be cancelable and has no default action.</dd>
- <p>Run the appropriate steps according to the conditions
- described:</p>
+ <dt>Otherwise</dt>
- <dl class=switch><dt>If the <a href=#current-document-readiness>current document readiness</a> is set to the
- string "complete"</dt>
+ <dd><p>Let the <code><a href=#document>Document</a></code>'s <dfn id=pending-state-object>pending state
+ object</dfn> be <var title="">state</var>. (If there was already
+ a <a href=#pending-state-object>pending state object</a>, the previous one is
+ discarded.)</p>
- <dd><p><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
- <code><a href=#window>Window</a></code> object of the <code><a href=#document>Document</a></code>, using
- the <code><a href=#popstateevent>PopStateEvent</a></code> interface, with the <code title=dom-PopStateEvent-state><a href=#dom-popstateevent-state>state</a></code> attribute set to
- the value of <var title="">state</var>. This event must bubble
- but not be cancelable and has no default action.</dd>
+ <p class=note>The event will then be fired just after the <code title=event-load>load</code> event.</dd>
- <dt>Otherwise</dt>
+ </dl></li>
- <dd><p>Let the <code><a href=#document>Document</a></code>'s <dfn id=pending-state-object>pending state
- object</dfn> be <var title="">state</var>. (If there was already
- a <a href=#pending-state-object>pending state object</a>, the previous one is
- discarded.)</p>
-
- <p class=note>The event will then be fired just after the <code title=event-load>load</code> event.</dd>
-
- </dl></li>
-
- </ol></li>
-
<li><p>If <var title="">hash changed</var> is true, then
<a href=#queue-a-task>queue a task</a> to fire a <code title=event-hashchange><a href=#event-hashchange>hashchange</a></code> event at the
<a href=#browsing-context>browsing context</a>'s <code><a href=#window>Window</a></code> object, using
Modified: source
===================================================================
--- source 2010-08-27 21:50:50 UTC (rev 5376)
+++ source 2010-08-27 23:02:43 UTC (rev 5377)
@@ -69172,53 +69172,41 @@
its rendering, for instance the scroll position or values of form
fields, that it had previously recorded.</p></li>
+ <li><p>If the entry is a <span>state object</span> entry, let <var
+ title="">state</var> be a <span>structured clone</span> of that
+ state object. Otherwise, let <var title="">state</var> be
+ null.</p></li>
+
<li>
- <p>If the <i>specified entry</i> is a state object or the first
- entry for a <code>Document</code>, the user agent must run the
- following substeps:</p>
+ <p>Run the appropriate steps according to the conditions
+ described:</p>
- <ol>
+ <dl class="switch">
- <li><p>If the entry is a <span>state object</span> entry, let <var
- title="">state</var> be a <span>structured clone</span> of that
- state object. Otherwise, let <var title="">state</var> be
- null.</p></li>
+ <dt>If the <span>current document readiness</span> is set to the
+ string "complete"</dt>
- <li>
+ <dd><p><span>Queue a task</span> to fire a <code
+ title="event-popstate">popstate</code> event at the
+ <code>Window</code> object of the <code>Document</code>, using
+ the <code>PopStateEvent</code> interface, with the <code
+ title="dom-PopStateEvent-state">state</code> attribute set to the
+ value of <var title="">state</var>. This event must bubble but
+ not be cancelable and has no default action.</p></dd>
- <p>Run the appropriate steps according to the conditions
- described:</p>
+ <dt>Otherwise</dt>
- <dl class="switch">
+ <dd><p>Let the <code>Document</code>'s <dfn>pending state
+ object</dfn> be <var title="">state</var>. (If there was already
+ a <span>pending state object</span>, the previous one is
+ discarded.)</p>
- <dt>If the <span>current document readiness</span> is set to the
- string "complete"</dt>
+ <p class="note">The event will then be fired just after the <code
+ title="event-load">load</code> event.</p></dd>
- <dd><p><span>Queue a task</span> to fire a <code
- title="event-popstate">popstate</code> event at the
- <code>Window</code> object of the <code>Document</code>, using
- the <code>PopStateEvent</code> interface, with the <code
- title="dom-PopStateEvent-state">state</code> attribute set to
- the value of <var title="">state</var>. This event must bubble
- but not be cancelable and has no default action.</p></dd>
+ </dl>
- <dt>Otherwise</dt>
-
- <dd><p>Let the <code>Document</code>'s <dfn>pending state
- object</dfn> be <var title="">state</var>. (If there was already
- a <span>pending state object</span>, the previous one is
- discarded.)</p>
-
- <p class="note">The event will then be fired just after the <code
- title="event-load">load</code> event.</p></dd>
-
- </dl>
-
- </li>
-
- </ol>
-
</li>
<li><p>If <var title="">hash changed</var> is true, then
More information about the Commit-Watchers
mailing list