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

Improve the name of window.navigate #3362

Closed
frivoal opened this issue Dec 3, 2018 · 2 comments
Closed

Improve the name of window.navigate #3362

frivoal opened this issue Dec 3, 2018 · 2 comments

Comments

@frivoal
Copy link
Collaborator

frivoal commented Dec 3, 2018


Migrated from WICG/spatial-navigation#120
Originally created by @frivoal on Wed, 17 Oct 2018 05:21:10 GMT


Previously in #70, we discussed whether window.navigate() was a great name for this API or not. It seems like it could be confused with navigating to a new URL, so some better name would be good.

However, no suggestion so far seems to work:

  • focusNavigate() or other names invoking focus are wrong, because it can also scroll things instead of focusing them
  • directionalNavigate() or spatialNavigate() or similar are also problematic, because this method should be possible to extend to sequential navigation by passing it a "prev" or "next" argument, and that does not work with such names.

So, leaving this issue open to see if we can do better.

@frivoal
Copy link
Collaborator Author

frivoal commented Dec 3, 2018


Migrated from WICG/spatial-navigation#120 (comment)
Originally created by @hugoholgersson on Tue, 30 Oct 2018 15:36:17 GMT


stepFocusOrScroll

@jihyerish
Copy link
Contributor

The issue migration script created some duplicates. #3387 is the same as this one.
So I'll close this issue.

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

2 participants