- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 24 Nov 2009 01:07:16 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv9866
Modified Files:
Overview.html acknowledgements.html browsers.html comms.html
dom.html editing.html embedded-content-0.html forms.html
history.html index.html infrastructure.html
interactive-elements.html introduction.html microdata.html
named-character-references.html obsolete.html offline.html
references.html semantics.html spec.html syntax.html
tabular-data.html text-level-semantics.html
the-canvas-element.html the-xhtml-syntax.html video.html
Log Message:
Explain pushState()'s title better. (whatwg r4376)
[updated by splitter]
Index: infrastructure.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/infrastructure.html,v
retrieving revision 1.502
retrieving revision 1.503
diff -u -d -r1.502 -r1.503
--- infrastructure.html 21 Nov 2009 15:03:28 -0000 1.502
+++ infrastructure.html 24 Nov 2009 01:07:12 -0000 1.503
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="introduction.html">← 1 Introduction</a> –
Index: text-level-semantics.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/text-level-semantics.html,v
retrieving revision 1.498
retrieving revision 1.499
diff -u -d -r1.498 -r1.499
--- text-level-semantics.html 13 Nov 2009 01:50:13 -0000 1.498
+++ text-level-semantics.html 24 Nov 2009 01:07:13 -0000 1.499
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="semantics.html">← 4 The elements of HTML</a> –
Index: history.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/history.html,v
retrieving revision 1.502
retrieving revision 1.503
diff -u -d -r1.502 -r1.503
--- history.html 21 Nov 2009 15:03:28 -0000 1.502
+++ history.html 24 Nov 2009 01:07:12 -0000 1.503
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="offline.html">← 6.7 Offline Web applications</a> –
@@ -238,7 +238,13 @@
all must model the same underlying <a href="#session-history">session history</a>.</p><p><code><a href="#history-0">History</a></code> objects represent their <a href="browsers.html#browsing-context">browsing
context</a>'s session history as a flat list of <a href="#session-history-entry" title="session history entry">session history entries</a>. Each
<dfn id="session-history-entry">session history entry</dfn> consists of either a
- <a href="infrastructure.html#url">URL</a> or a <a href="#state-object">state object</a>, or both.</p><p>URLs without associated <a href="#state-object" title="state object">state
+ <a href="infrastructure.html#url">URL</a> or a <a href="#state-object">state object</a>, or both.</p><p class="note">Titles associated with <a href="#session-history-entry" title="session history
+ entry">session history entries</a> need not have any relation
+ with the current <code><a href="semantics.html#the-title-element-0">title</a></code> of the
+ <code>Document</code>. The title of a <a href="#session-history-entry">session history
+ entry</a> is intended to explain the state of the document at
+ that point, so that the user can navigate the document's
+ history.</p><p>URLs without associated <a href="#state-object" title="state object">state
objects</a> are added to the session history as the user (or
script) navigates from page to page.</p><p>A <dfn id="state-object">state object</dfn> is an object representing a user
interface state.</p><p>Pages can <a href="#dom-history-pushstate" title="dom-history-pushState">add</a> <a href="#state-object" title="state object">state objects</a> between their entry in the
@@ -403,6 +409,35 @@
more convenient form, so that the script doesn't have to parse the
URL each time the user navigates.</p>
+ </div><div class="example">
+
+ <p>Applications might not use the same title for a <a href="#session-history-entry">session
+ history entry</a> as the value of the document's
+ <code><a href="semantics.html#the-title-element-0">title</a></code> element at that time. For example, here is a
+ simple page that shows a block in the <code><a href="semantics.html#the-title-element-0">title</a></code> element.
+ Clearly, when navigating backwards to a previous state the user
+ does not go back in time, and therefore it would be inappropriate
+ to put the time in the session history title.</p>
+
+ <pre>&l;t!DOCTYPE HTML>
+&l;tTITLE>Line&l;t/TITLE>
+&l;tSCRIPT>
+ setInterval(function () { document.title = 'Line - ' + new Date(); }, 1000);
+ var i = 1;
+ function inc() {
+ set(i+1);
+ history.pushState(i, 'Line - ' + i);
+ }
+ function set(newI) {
+ i = newI;
+ document.forms.F.I.value = newI;
+ }
+&l;t/SCRIPT>
+&l;tBODY ONPOPSTATE="recover(event.state)">
+&l;tFORM NAME=F>
+State: &l;tOUTPUT NAME=I>1&l;t/OUTPUT> &l;tINPUT VALUE="Increment" TYPE=BUTTON ONCLICK="inc()">
+&l;t/FORM></pre>
+
</div><h4 id="activating-state-object-entries"><span class="secno">6.8.3 </span><dfn title="activate the state object">Activating state object entries</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><pre class="idl">interface <dfn id="popstateevent">PopStateEvent</dfn> : Event {
readonly attribute any <a href="#dom-popstateevent-state" title="dom-PopStateEvent-state">state</a>;
void <a href="#dom-popstateevent-initpopstateevent" title="dom-PopStateEvent-initPopStateEvent">initPopStateEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any stateArg);
Index: tabular-data.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/tabular-data.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- tabular-data.html 13 Nov 2009 01:50:13 -0000 1.499
+++ tabular-data.html 24 Nov 2009 01:07:13 -0000 1.500
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="the-canvas-element.html">← 4.8.11 The canvas element</a> –
Index: microdata.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/microdata.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- microdata.html 13 Nov 2009 01:50:12 -0000 1.499
+++ microdata.html 24 Nov 2009 01:07:12 -0000 1.500
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="interactive-elements.html">← 4.11 Interactive elements</a> –
Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/Overview.html,v
retrieving revision 1.501
retrieving revision 1.502
diff -u -d -r1.501 -r1.502
--- Overview.html 13 Nov 2009 01:50:11 -0000 1.501
+++ Overview.html 24 Nov 2009 01:07:11 -0000 1.502
@@ -217,7 +217,7 @@
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
- <h2 class="no-num no-toc" id="editor-s-draft-13-november-2009">Editor's Draft 13 November 2009</h2>
+ <h2 class="no-num no-toc" id="editor-s-draft-24-november-2009">Editor's Draft 24 November 2009</h2>
<dl><dt>Latest Published Version:</dt>
<dd><a href="http://www.w3.org/TR/html5/">http://www.w3.org/TR/html5/</a></dd>
<dt>Latest Editor's Draft:</dt>
@@ -236,7 +236,7 @@
</dl><p>This specification is available in the following formats:
<a href="spec.html">single page HTML</a>,
<a href="Overview.html">multipage HTML</a>.
-This is revision 1.3508.
+This is revision 1.3509.
</p>
<p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
© 2009 <a href="http://www.w3.org/"><abbr title="World Wide
@@ -315,7 +315,7 @@
specification's progress along the W3C Recommendation
track.
- This specification is the 13 November 2009 Editor's Draft.
+ This specification is the 24 November 2009 Editor's Draft.
</p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are
identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
what was previously the HTML4, XHTML1, and DOM2 HTML
Index: embedded-content-0.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/embedded-content-0.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- embedded-content-0.html 13 Nov 2009 01:50:11 -0000 1.499
+++ embedded-content-0.html 24 Nov 2009 01:07:12 -0000 1.500
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="dom.html">← 3 Semantics, structure, and APIs of HTML documents</a> –
Index: dom.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/dom.html,v
retrieving revision 1.504
retrieving revision 1.505
diff -u -d -r1.504 -r1.505
--- dom.html 21 Nov 2009 15:03:27 -0000 1.504
+++ dom.html 24 Nov 2009 01:07:11 -0000 1.505
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="infrastructure.html">← 2 Common infrastructure</a> –
Index: acknowledgements.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/acknowledgements.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- acknowledgements.html 13 Nov 2009 01:50:11 -0000 1.499
+++ acknowledgements.html 24 Nov 2009 01:07:11 -0000 1.500
@@ -218,7 +218,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="references.html">← References</a> –
Index: the-canvas-element.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/the-canvas-element.html,v
retrieving revision 1.503
retrieving revision 1.504
diff -u -d -r1.503 -r1.504
--- the-canvas-element.html 21 Nov 2009 15:03:28 -0000 1.503
+++ the-canvas-element.html 24 Nov 2009 01:07:13 -0000 1.504
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="video.html">← 4.8.7 The video element</a> –
Index: forms.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/forms.html,v
retrieving revision 1.501
retrieving revision 1.502
diff -u -d -r1.501 -r1.502
--- forms.html 13 Nov 2009 01:50:12 -0000 1.501
+++ forms.html 24 Nov 2009 01:07:12 -0000 1.502
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="tabular-data.html">← 4.9 Tabular data</a> –
Index: interactive-elements.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/interactive-elements.html,v
retrieving revision 1.501
retrieving revision 1.502
diff -u -d -r1.501 -r1.502
--- interactive-elements.html 21 Nov 2009 15:03:28 -0000 1.501
+++ interactive-elements.html 24 Nov 2009 01:07:12 -0000 1.502
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="forms.html">← 4.10 Forms</a> –
Index: editing.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/editing.html,v
retrieving revision 1.503
retrieving revision 1.504
diff -u -d -r1.503 -r1.504
--- editing.html 21 Nov 2009 15:03:28 -0000 1.503
+++ editing.html 24 Nov 2009 01:07:12 -0000 1.504
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="history.html">← 6.8 Session history and navigation</a> –
Index: video.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/video.html,v
retrieving revision 1.503
retrieving revision 1.504
diff -u -d -r1.503 -r1.504
--- video.html 21 Nov 2009 15:03:28 -0000 1.503
+++ video.html 24 Nov 2009 01:07:13 -0000 1.504
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="text-level-semantics.html">← 4.6 Text-level semantics</a> –
Index: browsers.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/browsers.html,v
retrieving revision 1.504
retrieving revision 1.505
diff -u -d -r1.504 -r1.505
--- browsers.html 21 Nov 2009 15:03:27 -0000 1.504
+++ browsers.html 24 Nov 2009 01:07:11 -0000 1.505
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="microdata.html">← 5 Microdata</a> –
Index: the-xhtml-syntax.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/the-xhtml-syntax.html,v
retrieving revision 1.498
retrieving revision 1.499
diff -u -d -r1.498 -r1.499
--- the-xhtml-syntax.html 13 Nov 2009 01:50:13 -0000 1.498
+++ the-xhtml-syntax.html 24 Nov 2009 01:07:13 -0000 1.499
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="named-character-references.html">← 9.2 Named character references</a> –
Index: offline.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/offline.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- offline.html 13 Nov 2009 01:50:12 -0000 1.499
+++ offline.html 24 Nov 2009 01:07:12 -0000 1.500
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="browsers.html">← 6 Web browsers</a> –
Index: syntax.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/syntax.html,v
retrieving revision 1.502
retrieving revision 1.503
diff -u -d -r1.502 -r1.503
--- syntax.html 13 Nov 2009 01:50:13 -0000 1.502
+++ syntax.html 24 Nov 2009 01:07:13 -0000 1.503
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="comms.html">← 8 Communication</a> –
Index: obsolete.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/obsolete.html,v
retrieving revision 1.500
retrieving revision 1.501
diff -u -d -r1.500 -r1.501
--- obsolete.html 13 Nov 2009 01:50:12 -0000 1.500
+++ obsolete.html 24 Nov 2009 01:07:12 -0000 1.501
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="the-xhtml-syntax.html">← 10 The XHTML syntax</a> –
Index: named-character-references.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/named-character-references.html,v
retrieving revision 1.500
retrieving revision 1.501
diff -u -d -r1.500 -r1.501
--- named-character-references.html 13 Nov 2009 01:50:12 -0000 1.500
+++ named-character-references.html 24 Nov 2009 01:07:12 -0000 1.501
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="syntax.html">← 9 The HTML syntax</a> –
Index: references.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/references.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- references.html 13 Nov 2009 01:50:12 -0000 1.499
+++ references.html 24 Nov 2009 01:07:12 -0000 1.500
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="index.html">← Index</a> –
Index: semantics.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/semantics.html,v
retrieving revision 1.503
retrieving revision 1.504
diff -u -d -r1.503 -r1.504
--- semantics.html 21 Nov 2009 15:03:28 -0000 1.503
+++ semantics.html 24 Nov 2009 01:07:12 -0000 1.504
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="embedded-content-0.html">← 3.2.5.1.6 Embedded content</a> –
Index: index.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/index.html,v
retrieving revision 1.499
retrieving revision 1.500
diff -u -d -r1.499 -r1.500
--- index.html 13 Nov 2009 01:50:12 -0000 1.499
+++ index.html 24 Nov 2009 01:07:12 -0000 1.500
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="iana.html">← 12 IANA considerations</a> –
Index: comms.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/comms.html,v
retrieving revision 1.501
retrieving revision 1.502
diff -u -d -r1.501 -r1.502
--- comms.html 13 Nov 2009 01:50:11 -0000 1.501
+++ comms.html 24 Nov 2009 01:07:11 -0000 1.502
@@ -219,7 +219,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="editing.html">← 7 User Interaction</a> –
Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/spec.html,v
retrieving revision 1.508
retrieving revision 1.509
diff -u -d -r1.508 -r1.509
--- spec.html 21 Nov 2009 15:03:28 -0000 1.508
+++ spec.html 24 Nov 2009 01:07:13 -0000 1.509
@@ -215,7 +215,7 @@
<h1>HTML5</h1>
<h2 class="no-num no-toc" id=a-vocabulary-and-associated-apis-for-html-and-xhtml>A vocabulary and associated APIs for HTML and XHTML</h2>
- <h2 class="no-num no-toc" id=editor-s-draft-13-november-2009>Editor's Draft 13 November 2009</h2>
+ <h2 class="no-num no-toc" id=editor-s-draft-24-november-2009>Editor's Draft 24 November 2009</h2>
<dl><dt>Latest Published Version:</dt>
<dd><a href=http://www.w3.org/TR/html5/>http://www.w3.org/TR/html5/</a></dd>
<dt>Latest Editor's Draft:</dt>
@@ -234,7 +234,7 @@
</dl><p>This specification is available in the following formats:
<a href=spec.html>single page HTML</a>,
<a href=Overview.html>multipage HTML</a>.
-This is revision 1.3508.
+This is revision 1.3509.
</p>
<p class=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a>
© 2009 <a href=http://www.w3.org/><abbr title="World Wide
@@ -313,7 +313,7 @@
specification's progress along the W3C Recommendation
track.
- This specification is the 13 November 2009 Editor's Draft.
+ This specification is the 24 November 2009 Editor's Draft.
</p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href=http://www.whatwg.org/>WHATWG</a>. The two specifications are
identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of)
what was previously the HTML4, XHTML1, and DOM2 HTML
@@ -23345,7 +23345,13 @@
all must model the same underlying <a href=#session-history>session history</a>.</p><p><code><a href=#history-0>History</a></code> objects represent their <a href=#browsing-context>browsing
context</a>'s session history as a flat list of <a href=#session-history-entry title="session history entry">session history entries</a>. Each
<dfn id=session-history-entry>session history entry</dfn> consists of either a
- <a href=#url>URL</a> or a <a href=#state-object>state object</a>, or both.</p><p>URLs without associated <a href=#state-object title="state object">state
+ <a href=#url>URL</a> or a <a href=#state-object>state object</a>, or both.</p><p class=note>Titles associated with <a href=#session-history-entry title="session history
+ entry">session history entries</a> need not have any relation
+ with the current <code><a href=#the-title-element-0>title</a></code> of the
+ <code>Document</code>. The title of a <a href=#session-history-entry>session history
+ entry</a> is intended to explain the state of the document at
+ that point, so that the user can navigate the document's
+ history.</p><p>URLs without associated <a href=#state-object title="state object">state
objects</a> are added to the session history as the user (or
script) navigates from page to page.</p><p>A <dfn id=state-object>state object</dfn> is an object representing a user
interface state.</p><p>Pages can <a href=#dom-history-pushstate title=dom-history-pushState>add</a> <a href=#state-object title="state object">state objects</a> between their entry in the
@@ -23510,6 +23516,35 @@
more convenient form, so that the script doesn't have to parse the
URL each time the user navigates.</p>
+ </div><div class=example>
+
+ <p>Applications might not use the same title for a <a href=#session-history-entry>session
+ history entry</a> as the value of the document's
+ <code><a href=#the-title-element-0>title</a></code> element at that time. For example, here is a
+ simple page that shows a block in the <code><a href=#the-title-element-0>title</a></code> element.
+ Clearly, when navigating backwards to a previous state the user
+ does not go back in time, and therefore it would be inappropriate
+ to put the time in the session history title.</p>
+
+ <pre>&l;t!DOCTYPE HTML>
+&l;tTITLE>Line&l;t/TITLE>
+&l;tSCRIPT>
+ setInterval(function () { document.title = 'Line - ' + new Date(); }, 1000);
+ var i = 1;
+ function inc() {
+ set(i+1);
+ history.pushState(i, 'Line - ' + i);
+ }
+ function set(newI) {
+ i = newI;
+ document.forms.F.I.value = newI;
+ }
+&l;t/SCRIPT>
+&l;tBODY ONPOPSTATE="recover(event.state)">
+&l;tFORM NAME=F>
+State: &l;tOUTPUT NAME=I>1&l;t/OUTPUT> &l;tINPUT VALUE="Increment" TYPE=BUTTON ONCLICK="inc()">
+&l;t/FORM></pre>
+
</div><h4 id=activating-state-object-entries><span class=secno>6.8.3 </span><dfn title="activate the state object">Activating state object entries</dfn></h4><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><pre class=idl>interface <dfn id=popstateevent>PopStateEvent</dfn> : Event {
readonly attribute any <a href=#dom-popstateevent-state title=dom-PopStateEvent-state>state</a>;
void <a href=#dom-popstateevent-initpopstateevent title=dom-PopStateEvent-initPopStateEvent>initPopStateEvent</a>(in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in any stateArg);
Index: introduction.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/introduction.html,v
retrieving revision 1.500
retrieving revision 1.501
diff -u -d -r1.500 -r1.501
--- introduction.html 13 Nov 2009 01:50:12 -0000 1.500
+++ introduction.html 24 Nov 2009 01:07:12 -0000 1.501
@@ -218,7 +218,7 @@
<p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
<h1>HTML5</h1>
<h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2>
-<p>This is revision 1.3508.</p>
+<p>This is revision 1.3509.</p>
</div><div>
<a href="Overview.html#contents">Table of contents</a> –
Received on Tuesday, 24 November 2009 01:07:26 UTC