-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add <time> metadata to publication dates. #1904
Comments
The following code for
Initial testing results
(Not a comment on use or next steps merely sharing outcomes from testing with assistive technology) |
Thanks @chris-gds - when you say "doesn't announce" - what do you mean? Does JAWS literally skip the content of the |
Hey @edent - at the moment yes it simply ignores it (this is my current understanding), see below: (Screen recording of JAWs 2020 + Edge testing Screen.Recording.2021-11-25.at.11.44.38.mov |
Good to know it doesn't have any detrimental impact on screen readers. So it should improve the machine-readable semantics without causing any issues. |
In theory yes, AT users don't appear to benefit nor does it cause issues. I'm wondering now if we have any examples where this would be picked up (or used)? |
There are a few examples where it could be useful.
|
All great examples to me, thanks for these. |
Please can we add the
<time>
HTML element to things like publication dates and last updated dates?Documentation: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time
This will allow users and machines to semanticly understand when a document was published/updated.
At the moment, the HTML is rendered as:
Under this proposal, it would be:
I think the relevant change needs to be made at:
government-frontend/app/views/components/_published-dates.html.erb
Line 12 in 79e5c4d
The metadata element just needs an ISO8601 timestamp passed to it - of any precision.
As per the comment at co-cddo/open-standards#75 (comment)
The text was updated successfully, but these errors were encountered: