Skip to content
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

Add support for Navigation API #1531

Open
suryarajendhran opened this issue Mar 29, 2023 · 6 comments
Open

Add support for Navigation API #1531

suryarajendhran opened this issue Mar 29, 2023 · 6 comments

Comments

@suryarajendhran
Copy link

suryarajendhran commented Mar 29, 2023

Currently the navigation object is not available in the DOM and while the Navigation API is still experimental there is decent support for it in modern versions of browser. It'd be great to have it available as part of the default typescript DOM types.

@HolgerJeromin
Copy link
Contributor

decent support for it in modern versions of browser

Not, sadly it has not, according to MDN database

https://github.com/microsoft/TypeScript-DOM-lib-generator#why-is-my-fancy-api-still-not-available-here

A feature needs to be supported by two or more major browser engines to be included here, to make sure there is a good consensus among vendors: Gecko (Firefox), Blink (Chrome/Edge), and WebKit (Safari).

https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API#browser_compatibility
Blink only

@rogerpadilla
Copy link

We can reconsider this, it is 75% close now.

image

@mathe42
Copy link
Contributor

mathe42 commented Jun 5, 2024

It is still Blink only.

A feature needs to be supported by two or more major browser engines to be included here, to make sure there is a good consensus among vendors: Gecko (Firefox), Blink (Chrome/Edge), and WebKit (Safari).

https://developer.mozilla.org/en-US/docs/Web/API/Navigation_API#browser_compatibility

@justinfagnani
Copy link

Even though the Navigation API is currently only shipping in Blink, it has consensus support and is landed in the HTML spec, and seems nearly ready in WebKit.

@HolgerJeromin
Copy link
Contributor

If another browser is ready to ship it will be added (by a hard-working volunteer) to browser compatibility data and automatically added to this repo via a bot.
No need to send updates to this issue tracker before this is done...

@fregante
Copy link

fregante commented Nov 9, 2024

While this is discussed here, anyone landing on this issue can install this package:

npm install --save @types/dom-navigation

https://www.npmjs.com/package/@types/dom-navigation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants