#microformats 2026-09-24

2026-09-24 UTC
#
jkingweb
curses tantek silently, then proceeds to properly implement fetching of h-feeds by URL fragment, because he can.
#
[tantek]
šŸ™ˆ
Jon, [Leo] and thatoddshade joined the channel
#
jkingweb
I see that h-entry doesn't have a concept of attachments or enclosures; I suppose this is because HTML content is fully supported and you can just use <img> or <a> elements, etc.? I just want to make sure I'm not missing anything.
[aciccarello] joined the channel
#
[aciccarello]
For images there's usually the u-featured or u-image on the <img> element. And similar options for links.
#
[aciccarello]
Or if you have embedded images in your content those could potentially be rendered within e-content
[aciccarello] joined the channel
#
jkingweb
Ah, okay, that's good to know. I see u-photo has been mooted as well, for photo blogs and the like.
#
Loqi
[preview] [Anthony Ciccarello] I braved the heat and went and watched the Supergirl Surf Pro Competition again over the weekend. There was some really impressive surfing on both sides of the pier. I’m partial to the flow of the longboarding but of course the short board moves ar... https://www.ciccarello.me/assets/img/2026-supergirl-above-header.jpg [video]
#
jkingweb
aciccarello++
#
Loqi
aciccarello has 2 karma in this channel over the last year (54 in all channels)
thatoddshade, [schmarty], barnaby and vriska joined the channel
#
jkingweb
Not too complicated, in the end! I have no idea if it actually works yet, but it looks right.
barnaby, thatoddshade and solonovamax joined the channel
#
[aciccarello]
I need to check if there's a representative hcard parser in the js microformats library
#
[aciccarello]
Seems really useful.
#
gRegor
hadn't considered that being in the parser directly, hm. with php it's in barnaby's mf-cleaner helper lib.
#
gRegor
I think python might be similar with mf2-utils
#
solonovamax
according to https://microformats.org/wiki/representative-h-card-parsing, there exists https://github.com/rockorager/representative-h-card, however this url is dead. I can find https://www.npmjs.com/package/representative-h-card, so you might be able to recover the source code, but the repo is gone
[snarfed] joined the channel
#
[snarfed]
yup python has mf2util.representative_hcard
[snarfed] joined the channel
#
solonovamax
while testing a few of the hosted microformats parsing libraries on https://microformats.io on my website, I noticed a few funny things about what it extracted from the html. because I'm using tailwindcss, some of the html elements have classes like h-full on them, and they all seem to extract those. is there any way to tell them to not do that?
#
solonovamax
also in my head tag I have some honeypot stuff for LLM scrapers, like a rel=alternate to a .md version of the page or a rel=describedby which points to an llms.txt, both of which will just server a large compression bomb (like an ~1mb file that is 100gb when decompressed with brotli). I'd ideally like anyone trying to parse microformats for my page to never have to risk running into those. is there any way to exclude them? they're not inside
#
solonovamax
hmm, thunderbird just cut off part of my message lol
#
solonovamax
they're not inside of an h-card or anything
#
jkingweb
There was some discussion about what to do about Tailwind noise: https://github.com/microformats/microformats2-parsing/issues/59
#
Loqi
[preview] [tommorris] #59 Ignore Tailwind's h- prefixes
#
gRegor
Re: rels, not currently a way to exclude them. It's intentional to parse the rel-values
#
solonovamax
the tailwind one does feel like the smaller of the two issues though bc I assume that anyone parsing microformats will only extract things with known specs (h-card, h-event, etc.). I'm more worried about someone accidentally hitting the honeypot links tbh
#
solonovamax
gRegor: maybe something like a microformats=ignore property which microformats parsers would be aware of, but LLM scrapers (hopefully) won't? dunno
#
gRegor
you might try a different way to link to those traps. Not sure if most scrapers are actually looking for rel-alternate vs just visiting everything that looks like a URL
#
gRegor
could be a hidden `a href` link for example
#
solonovamax
those two in specific have to be like that, because I was just following the https://llmstxt.org/ spec (well, I could also always use the Link header for them ig)
#
gRegor
Heh, nice
#
solonovamax
I'm reading through all their funny little specs to provide alternative versions of pages for LLM crawlers that are "easier for them to ingest" so I can just serve them large compression bombs created with just dd if=/dev/zero lol
thatoddshade and plantroon joined the channel