3 ms·
Take a look at GitHub’s <relative-time> element - works great as a progressive enhancement: https://github.com/github/relative-time-element https://github.com/g
by Ciunkos 10mo ago
Take a look at GitHub’s <relative-time> element - works great as a progressive enhancement: https://github.com/github/relative-time-element https://github.com/github/relative-time-element
- WorldMaker 10mo agoLooks like a bigger version of something I built. In my case I built it as a progressive enhancement to `<time>` itself (like `<time is="relative-time">`), which also potentially makes it easier for it to gain features if the tag gains features. Of course, the most obvious (and disappointing) trade off to that approach is lack of Safari support [1]. [1] https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/is#browser_compatibility https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...