W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

[csswg-drafts] [css-nav-1] Improve the name of window.navigate (#3387)

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Mon, 03 Dec 2018 07:54:17 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-386697763-1543823656-sysbot+gh@w3.org>
frivoal has just created a new issue for https://github.com/w3c/csswg-drafts:

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

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.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3387 using your GitHub account
Received on Monday, 3 December 2018 07:54:18 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC