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

> ... makes it trivial in the future to extent to more than 4 directions.

For implementors, I guess it would be the same effort?

I prefer an API that's Easy To Use And Hard To Misuse (EUHM). It is possible to misspell a string.

Also, with an explicit function for each direction, authors could easily check if a direction is supported (check if the function exists) before calling it?

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

Received on Wednesday, 29 May 2019 07:14:29 UTC