4 ms·
TIL (from "Choose a week to question all your life choices") about: <input type="week"> https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements
by simonw 2y ago
TIL (from "Choose a week to question all your life choices") about:
<input type="week">
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/input/week https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...
Weird that it's supported by mobile
Safari but not desktop Safari (according to the support table). And not in Firefox yet.
- jeroenhd 2y agoSame is true on Firefox: works fine on mobile, but doesn't work at all on desktop. Especially weird as the mobile week picker is just a date picker that ignores the picked day and returns a week it seems; surely the same could've been implemented for desktop.
- wcoenen 2y agoNote that these are ISO 8601 weeks, which may not match the expectations of users everywhere. E.g. the US has a different system. https://en.wikipedia.org/wiki/Week#Other_week_numbering_systems https://en.wikipedia.org/wiki/Week#Other_week_numbering_syst...