[html5] r5485 - [giow] (1) Also make pushState() store UA state such as scroll position. Fixing [...]

whatwg at whatwg.org whatwg at whatwg.org
Sat Sep 25 08:32:05 PDT 2010


Author: ianh
Date: 2010-09-25 08:32:04 -0700 (Sat, 25 Sep 2010)
New Revision: 5485

Modified:
   complete.html
   index
   source
Log:
[giow] (1) Also make pushState() store UA state such as scroll position.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=10437

Modified: complete.html
===================================================================
--- complete.html	2010-09-25 15:16:37 UTC (rev 5484)
+++ complete.html	2010-09-25 15:32:04 UTC (rev 5485)
@@ -59956,6 +59956,13 @@
   for <a href=#state-object title="state object">state objects</a> added to the
   history by that document.</p>
 
+  <p><dfn id=an-entry-with-persisted-user-state>An entry with persisted user state</dfn> is one that also
+  has user-agent defined state. This specification does not specify
+  what kind of state can be stored.</p>
+  
+  <p class=example>For example, some user agents might want to
+  persist the scroll position, or the values of form controls.</p>
+
   <p>Entries that consist of <a href=#state-object title="state object">state
   objects</a> share the same <code><a href=#document>Document</a></code> as the entry for
   the page that was active when they were added.</p>
@@ -60207,6 +60214,11 @@
      <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued
      by the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
 
+     <li><p>If appropriate, update the <a href=#current-entry>current entry</a> to
+     reflect any state that the user agent wishes to persist. The
+     entry is then said to be <a href=#an-entry-with-persisted-user-state>an entry with persisted user
+     state</a>.</li>
+
      <li><p>Add a state object entry to the session history, after the
      <a href=#current-entry>current entry</a>, with <var title="">cloned data</var> as
      the state object, the given <var title="">title</var> as the title,
@@ -61491,19 +61503,12 @@
    then set its title to the value returned by the <code title=dom-document-title><a href=#document.title>document.title</a></code> IDL
    attribute.</li>
 
-   <li>
+   <li><p>If appropriate, update the <a href=#current-entry>current entry</a> in the
+   <a href=#browsing-context>browsing context</a>'s <code><a href=#document>Document</a></code> object's
+   <code><a href=#history-0>History</a></code> object to reflect any state that the user
+   agent wishes to persist. The entry is then said to be <a href=#an-entry-with-persisted-user-state>an
+   entry with persisted user state</a>.</li>
 
-    <p>If appropriate, update the <a href=#current-entry>current entry</a> in the
-    <a href=#browsing-context>browsing context</a>'s <code><a href=#document>Document</a></code> object's
-    <code><a href=#history-0>History</a></code> object to reflect any state that the user
-    agent wishes to persist. The entry is then said to be <dfn id=an-entry-with-persisted-user-state>an
-    entry with persisted user state</dfn>.</p>
-
-    <p class=example>For example, some user agents might want to
-    persist the scroll position, or the values of form controls.</p>
-
-   </li>
-
    <li><p>If the <i>specified entry</i> has a different
    <code><a href=#document>Document</a></code> object than the <a href=#current-entry>current entry</a>
    then the user agent must run the following substeps:</p>

Modified: index
===================================================================
--- index	2010-09-25 15:16:37 UTC (rev 5484)
+++ index	2010-09-25 15:32:04 UTC (rev 5485)
@@ -59936,6 +59936,13 @@
   for <a href=#state-object title="state object">state objects</a> added to the
   history by that document.</p>
 
+  <p><dfn id=an-entry-with-persisted-user-state>An entry with persisted user state</dfn> is one that also
+  has user-agent defined state. This specification does not specify
+  what kind of state can be stored.</p>
+  
+  <p class=example>For example, some user agents might want to
+  persist the scroll position, or the values of form controls.</p>
+
   <p>Entries that consist of <a href=#state-object title="state object">state
   objects</a> share the same <code><a href=#document>Document</a></code> as the entry for
   the page that was active when they were added.</p>
@@ -60187,6 +60194,11 @@
      <li><p>Remove any <a href=#concept-task title=concept-task>tasks</a> queued
      by the <a href=#history-traversal-task-source>history traversal task source</a>.</li>
 
+     <li><p>If appropriate, update the <a href=#current-entry>current entry</a> to
+     reflect any state that the user agent wishes to persist. The
+     entry is then said to be <a href=#an-entry-with-persisted-user-state>an entry with persisted user
+     state</a>.</li>
+
      <li><p>Add a state object entry to the session history, after the
      <a href=#current-entry>current entry</a>, with <var title="">cloned data</var> as
      the state object, the given <var title="">title</var> as the title,
@@ -61471,19 +61483,12 @@
    then set its title to the value returned by the <code title=dom-document-title><a href=#document.title>document.title</a></code> IDL
    attribute.</li>
 
-   <li>
+   <li><p>If appropriate, update the <a href=#current-entry>current entry</a> in the
+   <a href=#browsing-context>browsing context</a>'s <code><a href=#document>Document</a></code> object's
+   <code><a href=#history-0>History</a></code> object to reflect any state that the user
+   agent wishes to persist. The entry is then said to be <a href=#an-entry-with-persisted-user-state>an
+   entry with persisted user state</a>.</li>
 
-    <p>If appropriate, update the <a href=#current-entry>current entry</a> in the
-    <a href=#browsing-context>browsing context</a>'s <code><a href=#document>Document</a></code> object's
-    <code><a href=#history-0>History</a></code> object to reflect any state that the user
-    agent wishes to persist. The entry is then said to be <dfn id=an-entry-with-persisted-user-state>an
-    entry with persisted user state</dfn>.</p>
-
-    <p class=example>For example, some user agents might want to
-    persist the scroll position, or the values of form controls.</p>
-
-   </li>
-
    <li><p>If the <i>specified entry</i> has a different
    <code><a href=#document>Document</a></code> object than the <a href=#current-entry>current entry</a>
    then the user agent must run the following substeps:</p>

Modified: source
===================================================================
--- source	2010-09-25 15:16:37 UTC (rev 5484)
+++ source	2010-09-25 15:32:04 UTC (rev 5485)
@@ -67750,6 +67750,13 @@
   for <span title="state object">state objects</span> added to the
   history by that document.</p>
 
+  <p><dfn>An entry with persisted user state</dfn> is one that also
+  has user-agent defined state. This specification does not specify
+  what kind of state can be stored.</p>
+  
+  <p class="example">For example, some user agents might want to
+  persist the scroll position, or the values of form controls.</p>
+
   <p>Entries that consist of <span title="state object">state
   objects</span> share the same <code>Document</code> as the entry for
   the page that was active when they were added.</p>
@@ -68040,6 +68047,11 @@
      <li><p>Remove any <span title="concept-task">tasks</span> queued
      by the <span>history traversal task source</span>.</p></li>
 
+     <li><p>If appropriate, update the <span>current entry</span> to
+     reflect any state that the user agent wishes to persist. The
+     entry is then said to be <span>an entry with persisted user
+     state</span>.</p></li>
+
      <li><p>Add a state object entry to the session history, after the
      <span>current entry</span>, with <var title="">cloned data</var> as
      the state object, the given <var title="">title</var> as the title,
@@ -69482,19 +69494,12 @@
    title="dom-document-title">document.title</code> IDL
    attribute.</p></li>
 
-   <li>
+   <li><p>If appropriate, update the <span>current entry</span> in the
+   <span>browsing context</span>'s <code>Document</code> object's
+   <code>History</code> object to reflect any state that the user
+   agent wishes to persist. The entry is then said to be <span>an
+   entry with persisted user state</span>.</p></li>
 
-    <p>If appropriate, update the <span>current entry</span> in the
-    <span>browsing context</span>'s <code>Document</code> object's
-    <code>History</code> object to reflect any state that the user
-    agent wishes to persist. The entry is then said to be <dfn>an
-    entry with persisted user state</dfn>.</p>
-
-    <p class="example">For example, some user agents might want to
-    persist the scroll position, or the values of form controls.</p>
-
-   </li>
-
    <li><p>If the <i>specified entry</i> has a different
    <code>Document</code> object than the <span>current entry</span>
    then the user agent must run the following substeps:</p>




More information about the Commit-Watchers mailing list