Description
The Navigation API was previously submitted for consideration in Interop 2023.
Since then it has matured, graduated from being a HTML Spec PR to a part of the spec and landed in Chrome 110 (~ February 7th 2023, plus other Chromium-based browsers since).
Please note that I do not represent an implementer. I am a web developer that is enthusiastic about this massive improvement over the History API.
Some excellent features include:
- The
navigate event: a powerful way to conditionally convert cross-document navigations to same-document navigations
entries: exposing a list of NavigationHistoryEntry as an abstraction over same-origin session history entries
- Focus reset and scroll behaviour
- Handling a 'traverse' navigation event is much more intuitive than a
popstate. You can avoid reacting to it, derive whether the direction was forward or backwards by comparing entry index, and much more.
Specification
https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-api
Open Issues
Tests
https://wpt.fyi/results/navigation-api
Current Implementations
Standards Positions
Browser bug reports
Developer discussions
Various, including:
Polls & Surveys
Existing Usage
No response
Workarounds
Accessibility Impact
No response
Privacy Impact
Other
TAG design reviews:
MDN documentation
Description
The Navigation API was previously submitted for consideration in Interop 2023.
Since then it has matured, graduated from being a HTML Spec PR to a part of the spec and landed in Chrome 110 (~ February 7th 2023, plus other Chromium-based browsers since).
Please note that I do not represent an implementer. I am a web developer that is enthusiastic about this massive improvement over the History API.
Some excellent features include:
navigateevent: a powerful way to conditionally convert cross-document navigations to same-document navigationsentries: exposing a list ofNavigationHistoryEntryas an abstraction over same-origin session history entriespopstate. You can avoid reacting to it, derive whether the direction was forward or backwards by comparing entryindex, and much more.Specification
https://html.spec.whatwg.org/multipage/nav-history-apis.html#navigation-api
Open Issues
Tests
https://wpt.fyi/results/navigation-api
Current Implementations
Standards Positions
Browser bug reports
Developer discussions
Various, including:
Polls & Surveys
Existing Usage
No response
Workarounds
Accessibility Impact
No response
Privacy Impact
Other
TAG design reviews:
MDN documentation