-
Notifications
You must be signed in to change notification settings - Fork 56
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
Harmonize error code for watchPosition() #95
Comments
Gave this some thought... I think we should just fix Gecko and leave the spec be. |
Reopening the issue after some further discussion with @saschanaz and @annevk. |
The argument presented is that web developers could come to rely on 0 being returned synchronously, so we might as well standardize that. However, I'd argue that we should only ever return 0 going forward for any/all error and continue to push developers to check the |
Speaking with @saschanaz, they suggested we could harmonize all engines to just return
0
whenwhatPosition()
would results in an error. This change would only affect Firefox, as Chrome and Safari already return0
, but the spec could be updated to reflect this.The text was updated successfully, but these errors were encountered: