#microformats 2025-03-21

2025-03-21 UTC
sebbu2, glacier, Lux, skbohra, pfych, Guest6, joshl, ainstein, bbbhltz, Guest6_, [Murray], [baudouin], sivoais, [Laptop_Philhar], shadfi, b0rg, [mattl], [snarfed], [schmarty], balintm, btrem and [Ana_R] joined the channel
#
[Ana_R]
I've updated a post of mine https://ohhelloana.blog/box-shadow-border-grid-gap/ and I added a little aside at the top of the article.
#
[Ana_R]
I reckon I'm adding the microformat to the wrong element? https://github.com/ohhelloana/ohhelloana/commit/dbeb7fdd9b749e1bb46370bdaa5edf4a70405998
#
[Ana_R]
What do you do when you have multiple updates in the same post?
#
Loqi
[preview] [Ana Rodrigues] Experimenting with using box-shadow as a border on top of a grid-gap
#
gRegor
I think you want to update the time element there: `<time datetime="2025-03-21" class="dt-updated">`
#
gRegor
There can be multiples of a property, e.g. here is a example with a couple `dt-updated`: https://php.microformats.io/?id=20250321211130612 You can see they parse the dates as an array. However, I'm not aware of any consuming code (readers, etc.) that would handle that scenario. They'd probably pick the first one in the array and show that as the updated date.
#
gRegor
I don't think there's currently a way to indicate "this specific section of the post was updated", if that's what you were trying to do.
[jeremycherfas] joined the channel
#
[tantek]
Yeah other than ins and del elements
gRegorLove_ joined the channel
#
btrem
Both <ins> and <del> allow for a datetime attribute. Whether anything parses them that way is another matter.
#
[tantek]
I believe the only common implementation behaviors for ins and del are parsing into the DOM (for scripting etc.) and some default styling
#
Loqi
[preview] [aaronsw] htmldiff: Highlights the differences between two HTML pages.
#
[tantek]
[KevinMarks] I thought this was the classic: https://services.w3.org/htmldiff
#
btrem
I used <del> and <ins> in a website's todo list. When I added an item, it was in an <ins> element. When I completed it, I wrapped it in a <del> tag. Both had datetime attributes. If memory serves, I displayed the datetime via css ::after(attr). But I think that's as far as I got.
#
[tantek]
I have used del and ins in some longer article blog posts when I've made substantial revisions
#
btrem
thinks out loud
#
btrem
I don't think I'd want to show in a blog post. But one could imagine a toggle to show ins and del with the times those changes were made.
#
btrem
That's be kinda cool, actually.
#
btrem
But I'd only do it if I could automate the process using git commit diffs, and that's beyond my abilities.
#
btrem
It would be a useful service for news sites to provide to readers. I've read criticisms of stealth editing of news articles/headlines. A toggle to show changes would resolve that issue.
gRegorLove__ and gRegorLove_ joined the channel
#
[tantek]
they really ought to publish their articles on a wiki with history and diffs 🙂
gRegorLove__, gRegor, gRegorLove_, geauxweisbeck4 and balintm joined the channel