[html5] r5355 - [e] (0) fix pushState() example Fixing http://www.w3.org/Bugs/Public/show_bug.cg [...]

whatwg at whatwg.org whatwg at whatwg.org
Wed Aug 25 18:56:55 PDT 2010


Author: ianh
Date: 2010-08-25 18:56:53 -0700 (Wed, 25 Aug 2010)
New Revision: 5355

Modified:
   complete.html
   index
   source
Log:
[e] (0) fix pushState() example
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9560

Modified: complete.html
===================================================================
--- complete.html	2010-08-26 01:50:14 UTC (rev 5354)
+++ complete.html	2010-08-26 01:56:53 UTC (rev 5355)
@@ -59756,8 +59756,8 @@
 <script>
  var currentPage = 5; // prefilled by server
  function go(d) {
-   history.pushState(currentPage, 'Line Game - ' + currentPage, '?x=' + currentPage);
    setupPage(currentPage + d);
+   history.pushState(currentPage, document.title, '?x=' + currentPage);
  }
  onpopstate = function(event) {
    setupPage(event.state);

Modified: index
===================================================================
--- index	2010-08-26 01:50:14 UTC (rev 5354)
+++ index	2010-08-26 01:56:53 UTC (rev 5355)
@@ -59681,8 +59681,8 @@
 <script>
  var currentPage = 5; // prefilled by server
  function go(d) {
-   history.pushState(currentPage, 'Line Game - ' + currentPage, '?x=' + currentPage);
    setupPage(currentPage + d);
+   history.pushState(currentPage, document.title, '?x=' + currentPage);
  }
  onpopstate = function(event) {
    setupPage(event.state);

Modified: source
===================================================================
--- source	2010-08-26 01:50:14 UTC (rev 5354)
+++ source	2010-08-26 01:56:53 UTC (rev 5355)
@@ -67465,8 +67465,8 @@
 <script>
  var currentPage = 5; // prefilled by server
  function go(d) {
-   history.pushState(currentPage, 'Line Game - ' + currentPage, '?x=' + currentPage);
    setupPage(currentPage + d);
+   history.pushState(currentPage, document.title, '?x=' + currentPage);
  }
  onpopstate = function(event) {
    setupPage(event.state);




More information about the Commit-Watchers mailing list