w3c / w3c/csswg-drafts

[css-nav-1] Improve the name of window.navigate

Open
#3,387 10 comments 3 reactions 1 assignee View on GitHub

@jihyerish is already working on this.

Since May 22, 2019.

css-spatial-nav-1
Dominant language
Bikeshed
Stars
4.9k
Forks
816
PR merge metrics
PR metrics pending

Description


Migrated from https://github.com/WICG/spatial-navigation/issues/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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.