#microformats 2026-11-08

2026-11-08 UTC
#
gRegor
The more I'm looking at it (and referencing my own posts), I would lean towards `p-author h-card` on that wrapping element
#
Loqi
[preview] [gRegor Morrill] indiebookclub version 0.1.4 launched
#
trwnh
i think the footgun here is that a well-meaning publisher (like me!) can naturally author an a element wrapping a u-* property and then not realize it's actually An Issue
#
trwnh
a wrapping img and span seems reasonable to me
#
trwnh
it's not immediately obvious i should be wrapping the a in a span or something
#
gRegor
Slightly misspoke earlier, there are minimal photo + name versions: https://indieweb.org/h-card#How_to_markup
#
trwnh
that's a tricky one because it works only because the img is implicit? so double implicit works, the instant you get explicit about the img.u-logo it stops working?
#
gRegor
short version, if you start including explicit properties inside the h-card, implied parsing can stop working
#
trwnh
^ and that should be called out somewhere so publishers can guard against it ;)
#
trwnh
(not sure where, though...)
#
trwnh
i am pretty sure at this point it's a mf2 parsing algo issue though
#
gRegor
Usually with a validator like indiewebify.me
#
gRegor
Not that I can tell, all of the above is described in the parsing
#
trwnh
it's a non-obvious outcome
#
trwnh
i can similarly suppress the implied "name" property by using p-given-name and p-family-name http://php.microformats.io/?id=20261108000837805
#
trwnh
really i think the emphasis should go on "and no other explicit"
#
gRegor
Yep, any p-* or e-* properties will not imply a name
#
trwnh
actually i'm not entirely sure what the justification is for those bits...?
#
trwnh
it seems to have to do with not picking up false positives
#
gRegor
yeah, too many unexpected results parsing implied name on things
#
gRegor
https://microformats.org/wiki/h-card is pretty good because all of its exmaples use explicit properties, so it will always do the same thing.
#
trwnh
so then the "parsing for implied properties" section should have more warnings that you can't really depend on it in various situations outside the simplest one
#
gRegor
indieweb wiki is decent, since it gives the minimal examples that are common, but could use some more detailed ones
#
Loqi
[preview] Tantek Çelik
#
trwnh
more generally, anywhere where "minimal formats" are presented, they should be accompanied by a warning to "mind the gap", so to speak
#
trwnh
"as soon as you use a p-* or e-* property, you need to explicitly markup a p-name because it will no longer be implied. similarly, as soon as you use a u-* property, you need to explicitly markup a u-url because it will no longer be implied."
#
trwnh
(i guess also mentioning the photo case as well?)
#
gRegor
Out of curiosity, did you follow a tutorial that said to add the u-logo u-photo on that nested image, or were you referring to the properties on the mf2 wiki?
#
trwnh
just winging it
#
trwnh
basically looking at the mf2 wiki and being like "sure that makes sense to use"
#
gRegor
Ok, interesting
#
trwnh
but not being fully aware of the exceptions and limitations
#
trwnh
i guess i just assumed that implicit properties would always work
#
gRegor
Good info!
#
trwnh
and i was writing my html in a sort of "purist" sense of no classes no consideration for css or rendering kind of way, with the aim of progressively adding on support for things like mf2
#
gRegor
*something to update on
#
trwnh
that's one of the places that makes sense yeah but admittedly i wasn't aware that page existed until just now so it's maybe not the best/only page to edit ^_^
#
gRegor
Which also has "When more than those three minimal properties are needed, the root class name must be placed on an element which encloses all the desired properties, and then the properties themselves marked up using the classnames given below."
#
gRegor
Have to step away for a bit, will be back later
#
GWG
I was commenting that maybe we need to signpost better to a few things on the wiki
thatoddshade, barnaby, rMdes-bnc, Jon, [snarfed] and trwnh joined the channel