-
Notifications
You must be signed in to change notification settings - Fork 132
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 timedate
to the Date modified
#2081
Comments
I'd be against this since it's redundant and doesn't enhance semantics. It also doesn't tie into WCAG conformance. Here's an excerpt on this topic from the WHATWG HTML spec's definition of the
Since the text content of date modified's PS: For example, if date modified had been written along the lines of |
Thank you very much @EricDunsworth, always great details in your replies. I agree with you on that, if the text in the If they decide to change the displayed date format then we would have to make sure the Does repeating it cause any problems? Could this be future proofing our code if the date format ever changed? I'm ok to close this issue if there's a consensus that it's not needed. Thanks again @EricDunsworth, you're awesome. |
Thanks for the compliments @shawnthompson 😃! Btw I've added my follow-ups below. Full disclosure: This is just my opinion and shouldn't be taken as an authoritative answer.
Yeah. If date modified's writing format were to change into a non-machine readable format in the future, HTML validation would start failing on it unless a
Having a redundant
Yes. But IMO it's highly unlikely that date modified's format will change in the future. The pre-existing ISO date format looks to have been in place for over 23+ years (going by this 1999 snapshot of a random Canada.ca page). There might also be some GC web standards out there that mandate it (I didn't check). IMO an argument could be made that something like "January 10, 2023" is more readable than "2023-01-10" and therefore may benefit accessibility/usability. But on the other hand, the ISO date format is better-suited to i18n. Plus I'm not aware of anyone having ever complained about the ISO format before.
I think it'd ultimately be up to @duboisp to decide. FWIW I'm just a contributor and therefore can't officially make these kinds of calls. |
The more I work in the cognitive space and plain language I see the need to make our content even more accessible. Having a date in the ISO standard on our page can create a barrier for someone out there although having it in text would help everyone and having the I doubt they would ever change it though, because it doesn't fail conformance to WCAG. In the W3C's Making Content Usable for People with Cognitive and Learning Disabilities, it states the following.
Once again we focus on making content accessible to users of Assistive Technology (AT) but not those who need help understanding our content and don't use any AT devices due to many different reasons. There is work being done in WCAG 3 that is trying to include as much of Making Content Usable as possible in the guidelines but that's many years away from becoming a standard in the GC. |
I personally agree with this sentiment and usually go beyond WCAG 2.x when doing assessments or providing feedback.
I'm neutral about the ISO date format vs full dates in writing, but can totally see your point of view. Putting the month in writing is less ambiguous than a 2 digit number (particularly when the latter is adjacent to another 2 digit number). Although unlike some other confusing date formats (e.g. DD-MM-YYYY vs MM-DD-YYYY), the ISO format (YYYY-MM-DD) is always written in a unique order that's well-understood internationally. And that's where I think your biggest challenge would be. Changing the date into plain text may help certain users with cognitive impairments, but at the same time it'd become more difficult for international audiences to understand EN/FR month names vs the ISO format's numbers. Might not be too big of a deal in the context of the web though given how many browsers have built-in translators. There are also other formats out there that could arguably be more user-friendly than dates. For example, many sites these days use "X minutes/hours/days/etc ago" and can optionally show the exact date (usually via As far as the
It might be an uphill battle to change it at this time. But if you still want to give it a shot, I'd recommend starting off by reaching out to @delisma and/or DTO. You could probably get the ball rolling with a good argument (which you've already made) and links to sources/studies/usability testing/etc that support your stance. Btw here's what I was able to dig up about date formats in GC standards:
|
Add the
timedate
attribute to the<time>
element in the date modified.This will improve the interoperability of the content by applying a more specific info & relationship.
The text was updated successfully, but these errors were encountered: