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

I like the idea of putting a separate `SpatialNavigation` object on window, which could then expose its own interface for navigation. I think that dramatically reduces the ambiguity of what is going to happen with I interact with it (as opposed to `navigate()`.

For the navigation function name itself, I'd like to suggest `move()` as another option for the function name. I think this is short and memorable, distinct from the ambiguity of `navigate()`.

Something like `window.SpatialNavigation.move("up")` feels like it conveys the developer intent pretty clearly

-- 
GitHub Notification of comment by ncallaway
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3387#issuecomment-2143292374 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 1 June 2024 04:52:28 UTC