-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Remove reference to NaN heading value #35469
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
Conversation
Matches specification change in w3c/geolocation#173 and discussion about existing implementations in w3c/geolocation#171.
|
Did any browser ship with |
|
Preview URLs (comment last updated: 2024-08-24 00:34:48) |
We don't believe so. |
Josh-Cena
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you update https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates/heading too?
Done. |
Josh-Cena
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, LGTM 👍
Description
Removes the reference to the
headingfield being set toNaNwhenspeedis0. This matches the specification change in w3c/geolocation#173.Motivation
As discussed in w3c/geolocation#171, existing implementations do not provide the
NaNvalue previously required by the specification and so the specification has been changed. Documentation such as MDN should also be updated to reflect this reality and avoid developer confusion around whether this is a potential value returned by the API.