-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation API #435
Comments
For survey data and web developer demand, in preliminary results from State of HTML 2023, Navigation API was a somewhat common response to the freeform question "Which existing HTML features or browser APIs are you unable to use because of browser differences or lack of support?" |
Angular router package caretaker here. I've been following the development of the Navigation API for quite some time now and I feel that this is a huge step forward from the current set of APIs we have available to us. Just a few of the things that require custom implementations in the Angular router (and certainly other framework routers) that are more easily solved with the Navigation API:
Those are just a few points off of the top of my head. I'm sure we'll come across a whole host of other items that have previously been difficult to achieve with the current set of APIs or otherwise not at all possible while we continue to experiment with the Navigation API in the router. |
Started some conversations:
|
Thank you for proposing Navigation API for inclusion in Interop 2024. We wanted to let you know that this proposal was not selected to be part of Interop this year. This is because we got many more proposals than we could include in this year's project. Note that individual vendors may nevertheless choose to advance work in this area during the forthcoming year. We would welcome this proposal being resubmitted again next year if necessary. For an overview of our process, see proposal selection. Thank you again for contributing to Interop 2024! Posted on behalf of the Interop team. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Bummer, was looking forward to using this in React Router ASAP because the history API is rough for users and completely lacking for accessibility.
It's also one of those features many web developers don't know they want because frameworks have abstracted the current capabilities with lots of caveats. Hopefully can make it into 2025! |
@ryanflorence I believe this API is being worked on in WebKit already: WebKit/WebKit@eabae2c so just because it's not in Interop, doesn't mean we won't see it in 2024. I mirror your viewpoint that this isn't many are even aware of to know how important it is – frameworks have been abstracting this away for years. Let's just hope WebKit land it this year! 🤞 |
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:
navigate
event: a powerful way to conditionally convert cross-document navigations to same-document navigationsentries
: exposing a list ofNavigationHistoryEntry
as 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
The text was updated successfully, but these errors were encountered: