This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15366 - Expose history traversal direction
Summary: Expose history traversal direction
Status: RESOLVED WORKSFORME
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC All
: P2 enhancement
Target Milestone: ---
Assignee: Edward O'Connor
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-30 11:21 UTC by Anne
Modified: 2013-02-12 22:41 UTC (History)
7 users (show)

See Also:


Attachments

Description Anne 2011-12-30 11:21:40 UTC
E.g. for CSS transitions it would be nice if history traversal direction was known. Especially now there's history.pushState(). You can track this yourself but it would be nicer if it was explicitly exposed.

(Feedback from Ben Joffe.)
Comment 1 Ben Joffe 2011-12-30 11:35:00 UTC
Perhaps this could be a property of the event object as an integer (defined the same as the argument that could have been passed to history.go to trigger the navigation).

Another reason to want this property: some navigational states may be associated with an xhr request, if the navigation is back then it may be appropriate to display the previous result of that request, but if it is forward it may be appropriate to redo the request.
Comment 2 Ian 'Hixie' Hickson 2012-02-01 00:54:32 UTC
Interesting idea.

Sometimes the direction is forward relative to the last state that was active in the document, but backward relative to the last active entry in the session history, what would you do for that?
Comment 3 contributor 2012-07-18 06:53:28 UTC
This bug was cloned to create bug 17811 as part of operation convergence.
Comment 4 Edward O'Connor 2012-10-02 23:51:38 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: No spec change.
Rationale: Let's consider this for HTML.next.
Comment 5 Robin Berjon 2013-01-21 15:59:59 UTC
Mass move to "HTML WG"
Comment 6 Robin Berjon 2013-01-21 16:02:45 UTC
Mass move to "HTML WG"
Comment 7 Edward O'Connor 2013-02-12 22:41:22 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the Editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this document:

   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Rejected
Change Description: No spec change.
Rationale: As far as I can tell, the platform already provides the
relevant features. (N.B. the discussion on bug 17811.)